RedditPP Mascot

RedditPP

r/webdev • … • u/ZuriPL

Is this common knowledge?

Browsers seem to auto-declare HTML elements based on their id. I'v never encountered this, and never saw anyone talk about this. It isn't very useful, but just screwed me over when I was trying to explain scopes in JS, and wonder whether I missed something when learning the basics

​

Codepen: [https://codepen.io/zuriii-\_-/pen/QWxyLPQ](https://codepen.io/zuriii-_-/pen/QWxyLPQ)

— 0