HTML5 Video Player logo
HTML5 Video Player for Mac and Windows

HTML5 Nav Tag

The nav tag is new in HTML5, like several other tags such as the aside tag in HTML5 , the article tag in HTML5. Only latest browsers and versions, such as Internet Explorer 9, Firefox, Opera, Chrome, and Safari, support it. Microsoft IE8 and earlier versions do not support this Nav tag in HTML5.

The HTML5 nav tag defines a section of navigation links. Not all links of a document must be in a nav element. The HTML5 nav element is intended only for major block of navigation links. It can go in the page header or article tags; or it can be on its own. Technically you can place it anywhere you like.

How to use the nav tag in HTML5?

Here is what suggested by : “Not all groups of links on a page need to be in a HTML5 nav element — the element is primarily intended for sections that consist of major navigation blocks. In particular, it is common for footers to have a short list of links to various pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases; while a nav element can be used in such cases, it is usually unnecessary.” Here is a sample markup of the HTML5 nav tag:

<nav> <a href="http://html5videoplayer.net/">HTML5 Video Player</a> | <a href=" http://www.iphone-to-ipad.com/">iPhone/iPad/iPod Wireless Transfer</a> | <a href=" http://www.flash-slideshow-maker.com/">Flash Slideshow Maker</a> | </nav>

The nav tag in HTML5 also supports the Global Attributes and Event Attributes in HTML5.

,

One Response to “HTML5 Nav Tag”

  • [...] aside tag is new in HTML5, like several other tags such as the Nav tag in HTML5 , the Article tag in HTML5. Only latest browsers and versions, such as Internet Explorer 9, [...]

Leave a Reply

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

*

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>