Aims:
section
and an article
section
s and article
sheader
, hgroup
, nav
, aside
and footer
elementssection
element
section
is a thematic grouping—usually part of a larger wholearticle
is also a thematic grouping—but this time one that is self-containedarticle
section
or article
?<h1> Robert De Niro </h1> <p> Robert De Niro, Jr. (born August 17, 1943) is an American actor,… </p> <section> <h1> Early Life </h1> <p> Robert de Niro was born in New york,… </p> </section> <section> <h1> Career </h1> <section> <h1> Film </h1> <p> De Niro's first film role… </p> </section> <section> <h1> Film director </h1> <p> In 1993, De Niro made his directorial debut… </p> </section> </section>
article
might be split into several section
s
<article> <h1> Hidden airline charges </h1> <p> Cut-price airlines are in the news again… </p> </article> <article> <h1> Our weekend in Barcelona </h1> <section> <h1> What to see? </h1> <p> The highlight of our weekend was Gaudi's Sagrada Familia… </p> </section> <section> <h1> Where to eat? </h1> <p> My wife and I found a couple of lovely tapas bars in the Barri Gotic… </p> </section> </article>
article
s, you might group them into section
s
<section> <h1> News </h1> <article> Prince William and Kate Middleton are visiting… </article> <article> Financial turmoil in world markets… </article> </section> <section> <h1> Sport </h1> <article> Cricket woes… </article> <article> Arsenal and Liverpool argue over… </article> </section> <section> <h1> Celebs </h1> <article> At the Harry Potter premiere,… </article> <article> Brad Pitt is planning to film… </article> </section>
<article> <h1> Wet nurse to a Wombat </h1> <p> It was late, last February when Uncle Jack called to ask "Could you look after a baby wombat?"… </p> <article> LOL! </article> <article> I agree! </article> </article>
header
hgroup
footer
section
, article
,…nav
aside
div
div
id
to show the role of the group
<div id="menu"> … </div>
nav
div
is a last resort—when nothing else is suitable—and should be much rarer!
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }