When working with JQuery and trying to access elements, I have noticed that the method for retrieving content differs depending on the element type. For example, if I have a form with a textarea and want to get the text inside of it, I would use $("textarea").val();
However, if I am working with an h1 element, the syntax changes to $("h")[0].innerHTML;
I find this inconsistency interesting - why do methods like h1.val() or textarea.innerHTML not work in these scenarios?