Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <nav> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML slt;nav> tags

The label represents a section of a page designed to provide navigation links, and examples of common navigation bars are menus, directories, and indexes, refer to the following example:

An example of a navigation link:

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

Try it out . . .

Browser support

HTML <nav> tags HTML <nav> tags HTML <nav> tags HTML <nav> tags HTML <nav> tags

Most browsers currently support the hashtag.

Note: Internet Explorer 8 and earlier versions do not support the label.


Label definition and instructions for use

The label defines the part of the navigation link.

Not all HTML documents are required to use the .lt;nav> element. The element is simply an area that labels a navigation link.

On different devices (phones or PCs) you can determine whether navigation links are displayed to suit the needs of different screens.


The difference between HTML 4.01 and HTML5

The new label for HTML5.


Global properties

The label supports global properties and views the full property sheet HTML global properties.


The event property

The label supports all HTML event properties.


Read about it

CSS Reference Manual: slt;nav.gt; Properties