Last active
December 9, 2015 20:49
-
-
Save Hogent/4326749 to your computer and use it in GitHub Desktop.
Gist for article on HTML5 semantics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title | Site Name</title> | |
<meta name="description" content="page description"> | |
<link rel="stylesheet" href="style.css"> | |
<!--[if lt IE 9]> | |
<script src="html5shiv.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<header> | |
<hgroup> | |
<h1>Page Title</h1> | |
<h2>Page Subtitle</h2> | |
</hgroup> | |
</header> | |
<nav> | |
<ul> | |
<li><a href="#">Home</a></li> | |
<li><a href="#"></a></li> | |
<li><a href="#"></a></li> | |
<li><a href="#"></a></li> | |
</ul> | |
</nav> | |
<section> | |
<article> | |
<header> | |
<h2>Article Title</h2> | |
</header> | |
<section> | |
<p>Paragraph, etc...</p> | |
</section> | |
</article> | |
<article> | |
<header> | |
<h2>Article Title</h2> | |
</header> | |
<section> | |
<p>Paragraph, etc...</p> | |
</section> | |
</article> | |
</section> | |
<aside> | |
<h4>Widget title</h4> | |
<ul> | |
<li><a href="#"></a></li> | |
<li><a href="#"></a></li> | |
</ul> | |
</aside> | |
<footer> | |
<small>copyright message</small> | |
</footer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment