Menu Home

Getting HTML Elements

Hey everyone! It’s time for another exciting edition of Boring JavaScript. Up for this snooze-fest is the Grand Five Ways to select elements in your HTML document – getElementById, getElementsByClassName, getElementsByTagName, querySelector, and querySelectorAll. Believe you me, you can collect elements any which way you dream of, and we give you all five of them. You should be asleep by the second one.