The HTML5 <nav> tag

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

Web browser support:

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

There is a HTML5 <nav> tag example given below:

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

Leave a Reply

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

8 − = four

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>