Here’s a basic markup of a HTML5 document:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset=utf-8>
  <title>A simple HTML5 page layout</title>
  <!--[if IE]>
  http://html5shiv.googlecode.com/svn/trunk/html5.js
  <![endif]-->
  <style>
    body { margin:100px; }
    article, aside, figure, footer, header, hgroup, menu, nav, section {
    display:block;
    }
  </style>
</head>
<body>
  <nav>
    <a href="simple-html5-document.html">home1</a>
    <a href="simple-html5-document.html">home2</a>
  </nav>
  <header>
    <h1>A simple  cheap mlb jerseys  HTML5 document</h1>
  </header>
  <article>
    <hgroup>
      <h1>Article 1 heading</h1>
      <h2>Article 1 sub-heading</h2>
  wholesale nba jerseys     </hgroup>
    <section>
      <h3>Section 1  wholesale nfl jerseys  heading</h3>
    </section>
  </article>
  <article>
   CREARE    <header>
      <h1>Article 2 heading</h1>
   Салат    </header>
    <section>
      <h2>Section 1 heading</h2>
    </section>
  </article>
   Bra  <footer>
    <p>This is the footer</p>
  </footer>
</body>
</html>

Definitions:

<!DOCTYPE html>

All HTML documents start with a <DOCTYPE>. In HTML5, it’s simply html with no extra attributes.

<html lang="en">

We can simply use <html> on its own. But for completeness, we’ll include language attribute.

<head>

This tag remains the same, buy some standard tags within it have changed.


Usually we find Must type="text/javascript" attribute within this tag when defining JavaScript. In HTML5, the default is text/javascript, which means if you are defining code other than JavaScript, there is no need to include the type attribute.


The same goes for the tag. This now defaults to text/css thus mit we don’t have to add anything to it, simply .


This has been reduced as well. We simply add the charset and nothing else. No more do we have to deal with this long chunk:


Within the tag, use of

to

,

, ,

,