Javatpoint Logo
Javatpoint Logo

HTML <nav> tag

HTML <nav> tag is used to represent a section which contains navigation links, either within current document or to another document. Examples of some navigation links are menu, table of contents, indexes, etc.

The <nav> tag is newly added tag in HTML5.

Tips: You can use multiple links within a page, but it's not necessary to put all the links within

Syntax

Following are some specifications about the HTML <nav> tag

Display Block
Start tag/End tag Both Start and End tag
Usage Structural

Example

Test it Now

Attribute:

Tag-specific attributes:

The <nav> tag does not contain any specific attribute in HTML.

Global attribute:

The <nav> tag supports the global attributes in HTML

Event attribute:

The <nav> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<nav>YesYesYesYesYes
Next TopicHTML noframes Tag




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA