What is this for?

This is just a quick post to give you some sample HTML5 basic markup.
You can just copy the markup, paste it into your file and start writing the HTML.

Ok I'll be honest, I've done it for me, but you can use it too.

Basic HTML5 Template Layout

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1' http-equiv='X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title></title>
    <!--css here-->
    <!--<link rel="stylesheet" type="text/css" href="/css/style.css">-->
</head>
<body>
    <h1>Coming Soon</h1>
    <!--scripts here-->
    <!--<script type="text/javascript" src="/css/script.js"></script>-->
</body>
</html>

Basic HTML5 Template with Header, Footer and Nav

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1' http-equiv='X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <!--css here-->
    <!--<link rel="stylesheet" type="text/css" href="/css/style.css">-->
</head>
<body>
    <header>
        <nav>
            <a href="/" class="active">Home</a>
            <a href="/about/">About</a>
            <a href="/contact/">Contact</a>
        </nav>
        <h1>Header 1</h1>
    </header>
    <section>
        <h2>Header 2</h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
    </section>
    <footer>
        &copy; 2016
    </footer>
    <!--scripts here-->
    <!--<script type="text/javascript" src="/scripts/site.js"></script>-->
</body>
</html>

IF you find this page useful, add it to your bookmarks.

Want to thank me?

If I've helped you out and you want to thank me, why not buy me a coffee?

Buy me a coffee

About the author

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Related Posts

How to create a dynamic image from multiple images using ImageProcessor

This post shows you how I created a handler to create dynamic header images for my umbraco website u…

Read Post

How to send Slack messages programmatically using C#

In this post I show you how you can send Slack messages programmatically using C#

Read Post

Cyber Monday Deals

As it is Cyber Monday and you are probably looking for some tech related deals, I thought I would cr…

Read Post

How to get the swagger JSON file from a Web API

If you need to know the url to get the swagger json file, then this is the post for you.

Read Post