This looks weird to me:
Take a look at the screen shot above taken from Youtube. Can someone please explain what purpose does it serve to have same IDs(dismissable
, dismissed
) for multiple elements?
These are the suggestion videos on the right side while another video is playing as in the screenshot below:
The HTML validator: https://validator.w3.org/ shows that YouTube and, in fact, many Google websites as not HTML compliant.
Note: I tested a copy of the HTML because using the URL will crop some HTML that is rendered after the page is loaded.
I analyzing the required page and it showed more than 1000 html errors. See error #1001 below:
Regarding your question. The said ID is duplicate and this is not allowed in HTML. The ID was used for CSS styling (which is a bad practice to format multiple elements using the id. The good practice is to use the class. See:
Conclusion Google websites are bad examples for learners of professional programming. In fact, I once wrote an article on LinkedIn how Google asks websites to comply to some SEO rules, however, non of Google's websites follow their own rules of SEO. See my article on Linkedin for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With