While working on my tribute page I wondered about attribute naming conventions, particularly ones for ids, and so I took a peek at MDN page on ids.
To my surprise, I found this paragraph:
What does this mean exactly, and why shouldn’t I do it? Does it only refer to names that have corresponding semantic HTML elements, like “header”, “nav” or “section”? I’m guessing it may have something to do with accessibility.
an ID or class does not show up on the web page. You could use any old text or numbers in there and it wouldn’t change anything. It is best practice to call it something that describes the section though, obviously. (I.e. div class=“container”). In theory this could be called anything, but at least you know what you’ve created it for when you call it a container!