Skip to content

Instantly share code, notes, and snippets.

@danwarfel
Created March 8, 2016 04:34
Show Gist options
  • Save danwarfel/a6bfb6fc06a0a786bba4 to your computer and use it in GitHub Desktop.
Save danwarfel/a6bfb6fc06a0a786bba4 to your computer and use it in GitHub Desktop.
Semantics
<!-- bad -->
<div id="main">
<div class="article">
<div class="header">
<h1>Blog post</h1>
<p>Published: <span>21st Feb, 2015</span></p>
</div>
<p>…</p>
</div>
</div>
<!-- good -->
<main>
<article>
<header>
<h1>Blog post</h1>
<p>Published: <time datetime="2015-02-21">21st Feb, 2015</time></p>
</header>
<p>…</p>
</article>
</main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment