Brain Food for Web Developers

HTML5 Logo

Basic HTML5 Starter Template

Need to start a new HTML5 page in a hurry? Just copy and paste this HTML5 starter code. It uses a conditional tag that loads the html5 shiv for IE. Adjust your css & js file locations accordingly.

<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" href="css/styles.css">
    <!--[if lt IE 9]>
    <script src=""></script>
    <!-- Content goes here -->
    <script src="js/scripts.js"></script>

If you haven’t already, you should look at the HTML Boilerplate project. It’s a very quick way to get a site started with HTML5.

Author: Graham

My name is Graham and I'm a Scottish web developer living in California. I love working with clean code to make attractive and usable websites. I'm also interested in cooking, gardening, and taekwondo.

Comments are closed.