I have to admit that the semantic markup of HTML5 confuses me. I am talking about these tags, in particular:
<header> <nav> <section> <article> <aside> <footer>
Using semantic elements provides UA information that it usually cannot get from <div> , but should they be used with <div> tags, or should you / should you properly impose semantic markup?
In other words, what is the right approach?
It:
<div id="content"> <section> <h1>Lorem ipsum></h1> <p>Text</p> </section> </div>
Or that:
<section id="content"> <h1>Lorem ipsum></h1> <p>Text</p> </section>
Nils Kaspersson
source share