Great article! I learned something (e.g. <time> tag) from this!
Observation
Also, a question of vernacular:
Aren't "elements" the result of applying a given (HTML) "tag" to an area of the page? So headings in this article might rather be "The address tag", "The ol tag", and "The time tag".
Background
Looking at this from a JavaScript perspective, I'd use
document.getElementById() to access a created element based on its id attribute, and
document.getElementsByTagName() to access any elements based on the tag itself
Feedback
Great article! I learned something (e.g.
<time>
tag) from this!Observation
Also, a question of vernacular:
Aren't "elements" the result of applying a given (HTML) "tag" to an area of the page? So headings in this article might rather be "The address tag", "The ol tag", and "The time tag".
Background
Looking at this from a JavaScript perspective, I'd use
document.getElementById()
to access a created element based on its id attribute, anddocument.getElementsByTagName()
to access any elements based on the tag itself(my 2.5 cents)
Thank you for your tip. I use words by basing on specs. So I write like this