html5 - Why cant we use <wrapper></wrapper>? -
i can use <section id="wrapper"></section>
, because i'm pedantic, there wrong using <wrapper></wrapper>
html element?
i'm using html5 shiv , modernizer, work fine wanted know if there's particularly wrong doing way.
<section>
elements represent section in page, not your layout. important , confused of starters in html5 including me.
let me show wrong, using example:
<section id="banner"> </section>
banners part of layout not web content. not have section. have represented <div>
used in html 4.
<section id="wrapper">...</section>
is wrong in same way, because wrappers purely layout specific tasks, not represent specific content on page. <sections>
should represent differentiated content , not others.
here example of html5, can considered valid.
<div id="wrapper"> <section id="mainarticle"> </section> <section id="aboutauthor"> </section> <aside id="relatedarticles"> </aside> </div>
Comments
Post a Comment