Hello all! I was working through the third lesson in jQuery and I noticed something that was really getting to me:
When do I use ‘p’ and when do I use “<‘p’>” (inner quotes just for reference)
Specifically, my issue comes up when the command is to find something in a paragraph. In my mind, I think that the paragraph tag ("<‘p’>") would be used, but it isn’t, it’s just ‘p’.
For example, in 3.9, the object is to replace the contents of a paragraph with a string. Simple enough:
$('p').html("jQuery magic in action!");
And done. The code works, but it bugs me that when I’m looking for a paragraph, I don’t use the paragraph tag. Could someone please help a little? I would like a bit of clarification.