HTML5 <nav> Tag


The nav element defines a section intended for navigation:

<a href="default.php">Home</a>
<a href="tag_meter.php">Previous</a>
<a href="tag_noscript.php">Next</a>

Try it yourself »

Definition and Usage

The <nav> tag defines a section of navigation.

Differences Between HTML 4.01 and HTML5

The <nav> tag is new in HTML5

Tips and Notes

Tip: If you have "previous" and "next" buttons in your document, they should be placed inside the <nav> element.

Standard Attributes

The <nav> tag also supports the Standard Attributes in HTML5.

Event Attributes

The <nav> tag also supports the Event Attributes in HTML5.