HTML5 Structure

  • 0

<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>...</title>
</head>
<body>
  <header>...</header>
  <nav>...</nav>
  <article>
    <section>
      ...
    </section>
  </article>
  <aside>...</aside>
  <footer>...</footer>
</body> 
Example
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>...</title>
</head>
<body>
  <header role="banner">
 <h1>HTML5 Document Structure Example</h1>
 <p>This page should be tried in safari, chrome or Mozila.</p>
  </header>
  <nav>
  <ul>
     <li><a href="http://www.tutorialspoint.com/html">HTML Tutorial</a></li>
     <li><a href="http://www.tutorialspoint.com/css">CSS Tutorial</a></li>
     <li><a href="http://www.tutorialspoint.com/javascript">JavaScript Tutorial</a></li>
 </ul>
  </nav>
  <article>
    <section>
       <p>Once article can have multiple sections</p>
    </section>
  </article>
  <aside>
      <p>This is  aside part of the web page</p>
  </aside>
  <footer>
  Created by <a href="http://tutorialspoint.com/">Tutorials Point</a>
  </footer>
</body> 



Output

No comments:

Post a Comment