DEV Community

Discussion on: 5 Common HTML Mistakes you should avoid.

Collapse
 
rendall profile image
rendall • Edited

You misread #1. I suspect if you reread it you would agree with it. OP is saying nothing more than to use <header> and <footer> tags rather than <div> for headers and footers.

As for #2, I'm not sure you're correct. Can you expand or give more information? W3 has only this to say about <figure>

The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document.

The element can thus be used to annotate illustrations, diagrams, photos, code listings, etc

Pretty vague. "Flow content" that is "self contained" and optionally has a caption. One of the W3 examples just used a picture of "Bubbles at work".

I do agree with you about 3, 4 and 5 though. Except "utter ignorance" is a bit harsh. We're all learning.

Collapse
 
deathshadow60 profile image
deathshadow60 • Edited

Hmm, either it's been edited, or I did indeed misread it. I could have sworn the first example was <header id="header"> etc, etc.

I just looked up FIGURE in the spec, and I know for a fact that wasn't there that way just a year or so ago. Even more disturbing the current text describing the tag seemingly to have anything and everything related to its semantics utterly purged... making it as silly as people who use aside for sidebars. or HROUP, remember that one, the tag so stupid it proved the WhatWG didn't know enough about numbered headings to make 4 Strict's successor?

But that's HTML 5 for you, anything to piss on semantics, remove our ability to track what version we're using, and make pointless arbitrary changes and/or flip the bird at everything 4 Strict was trying to accomplish.

See such idiocy as declaring what valid meta and their values are (x-ua much) the opposite of why META tags even exist -- and violating their own rules about the number of supported browsers before something can enter recommendation... or making the old tbody/tfoot order invalid, or dozens of other things that means yesterday's valid HTML 5 can be invalid today. And today's valid HTML 5 can be invalid tomorrow.

Because "living document". BARF.

But as I oft say, the web is a moving target. Every time you think you know how things work, somebody in "authority" goes and changes it.