Navigation in HTML5

Navigation in HTML5 is quite simple, just create a nav element and give it a role to support extra technologies.

<nav role="navigation">
  <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
</nav>

Post a Comment

To post code, use the code tag with a class language-*
Examples: code class="language-markup"code class="language-css"