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="/css/script.js"></script>-->
</body>
</html>

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

Paul Seal

A .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.

Web: codeshare.co.uk

Comments