/

HTML / CSS / JavaScript Tutorial

HTML Element: <nav>

[this page | pdf | back links]

The HTML <nav> element indicates navigation links. It is new in HTML 5. It is usual not to put all navigation links inside a <nav> element. Instead this element is intended only for major blocks of such links (so that browsers such as for disabled users can use this element to determine when to omit initial rendering of content).

 

The attributes it can take are HTML global attributes and HTML event attributes.

 

To create or access such an element in JavaScript see here. The corresponding HTML DOM object supports standard DOM properties and methods. The default style applicable to this element is shown here.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile