Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A Pen by David Cochran.

HTML5 Markup Template - Basic

A very basic starter template with fundamental HTML5 markup -- only the basics.

Based on HTML5 Bones |

<!DOCTYPE html>
<!-- Based on HTML5 Bones | -->
<html lang="en">
<meta charset="utf-8">
<title>Page Title</title>
<meta name="description" content="">
<!-- Mobile-friendly viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Style sheet link -->
<link href="css/main.css" rel="stylesheet" media="all">
<header role="banner">
<a class="brand">Site Title or Logo</a>
<nav role="navigation">
<ul class="navbar">
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
<li><a href="#">Page 4</a></li>
<main role="main">
<h1>Page Heading</h1>
<p>Use the HTML5 <code>main</code> element to wrap the central content of your page.</p>
<h2>Page sub-heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam aliquam, sem vitae tincidunt lobortis, nibh tellus faucibus elit, sed imperdiet enim mauris eget felis. Donec a varius sapien, at mattis nunc.</p>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
<li>List item</li>
</main><!-- End primary page content -->
<aside role="complementary">
<h3>Secondary page content</h3>
<p>Use the <code>aside</code> element if you need to include content that is not central to the focus of the page or is clearly of secondary importance.</p>
<footer role="contentinfo">
<div>Page footer content</div>
<small>Copyright &copy; <time datetime="2013">2013</time></small>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.