Another newly added tag in HTML5 is the nav tag (<nav>). HTML5 nav tag defines the section for navigation links in a document. It is not mandatory to place all the links of a document in nav element, but the major navigational links should be placed under it. This element can be used more than one place within a document. But nav element should be placed in such places in a document so that visitors can easily access the navigational links.

Important point need to be remembered:

  • HTML5 nav element is supported by latest versions of all web browsers. Internet Explorer 8 or earlier versions of Internet Explorer do not support nav element.

There is a HTML5 nav tag example given below:

<nav>
    <a href="/">Home</a> | <a href="/blog/">Web Design Blog</a> | <a href="/sitemap.htm">Sitemap</a> | <a href="/contact-us.htm">Contact Us</a>
</nav>

S Ghosh

Leave a Reply

Your email address will not be published. Required fields are marked *