Results 1 to 6 of 6
Apr 18, 2012, 08:41 #1
- Join Date
- Oct 2004
- 0 Post(s)
- 0 Thread(s)
HTML5: Section vs Article elements
I'm learning HTML5 so I can take advantage of the semantic elements such as <header>, <nav>, <article>, etc, in my own projects. But, I have a question on how to correctly use the <section> and <article> elements in my documents.
Is there a set standard on how to lay out the page with <section> and <article> elements? To me, it makes sense to wrap your SECTIONS of content with the <section> element like so:
<section> <article> <header><h2>This is an article title</h2></header> <p>This is the main body text of the article blah blah blah</p> </article> <aside> A sidebar here</aside> </section>
Am I right in my thinking? THanks!