Latest web development tutorials

HTML <nav> tag

Examples

A navigation link instance:

<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Most browsers support <nav> tag.


Tag definitions and instructions

<Nav> tag to define navigation links section.

Not all HTML documents have to use the <nav> element. <Nav> element only as a navigation link marked area.

On (phone or PC) different devices can be developed navigation links are displayed to suit the needs of different screens.


HTML 4.01 and HTML5 differences in

<Nav> is the new HTML5 tags.


Global Properties

<nav> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<nav> tag supports all HTML event attributes .