De article tag
In de HTML5 specificatie wordt de <article> tag geïntroduceerd.
Met deze tag is het voor een zoekmachine duidelijk dat het gaat om content die door een gebruiker is ingestuurd, zoals een nieuws item of een reactie daarop.
<article> <header> <h1>The Very First Rule of Life</h1> <p><time datetime="2009-10-09">3 days ago</time></p>
</header> <p>If there's a microphone anywhere near you, assume it's hot and sending whatever you're saying to the world. Seriously.</p> <p>...</p> <footer> <a href="?comments=1">Show comments...</a> </footer> </article>
De section tag
Als er meerdere reacties worden getoont zou ik zelf denken aan een <comment> tag echter kan daarvoor ook de <article> tag worden gebruikt.
Om deze verzameling geralateerd aan het onderwerp te groeperen wordt er een <section> tag gebruikt:
<article>
<header>
<h1>The Very First Rule of Life</h1>
<p><time datetime="2009-10-09">3 days ago</time></p>
</header>
<p>If there's a microphone anywhere near you, assume it's hot and
sending whatever you're saying to the world. Seriously.</p>
<p>...</p>
<section>
<h1>Comments</h1>
<article id="c1">
<footer>
<p>Posted by: George Washington</p>
<p><time datetime="2009-10-10">15 minutes ago</time></p>
</footer>
<p>Yeah! Especially when talking about your lobbyist friends!</p>
</article>
<article id="c2">
<footer>
<p>Posted by: George Hammond</p>
<p><time datetime="2009-10-10">5 minutes ago</time></p>
</footer>
<p>Hey, you have the same first name as me.</p>
</article>
</section>
</article>
Het datetime attribuut
Voor het vastleggen van de publicatie datum wordt het datetime attribuut in de time tag gebruikt.
<time datetime="2012-12-21 22:30:00">5 minutes ago</time>
Ik heb gelezen over het pubdate attribuut, maar er is een verzoek ingediend om deze uit de HTML5 specificatie te verwijderen.
Categorieën
XHTML