Skip to content

Instantly share code, notes, and snippets.

@robynitp
Created March 10, 2014 20:05
Show Gist options
  • Save robynitp/9473172 to your computer and use it in GitHub Desktop.
Save robynitp/9473172 to your computer and use it in GitHub Desktop.
A base HTML5 to use for a single page site. Javascript, jQuery, and CSS need to be added.
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html">
<!-- css and js references are just placeholders here. add your own -->
<link rel="stylesheet" type="text/css" media="all" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/myscript.js"></script>
<title>HTML5</title>
</head>
<body>
<nav id="topnav">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav><!-- end #topnav -->
<section id="home" class="page">
<h2>Home Page</h2>
</section><!-- end #home -->
<section id="about" class="page">
<h2>About Something</h2>
</section><!-- end #about -->
<section id="news" class="page">
<h2>All the News</h2>
</section><!-- end #portfolio -->
<section id="contact" class="page">
<h2>Contact Us</h2>
</section><!-- end #contact -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment