HTML nav - how to use <nav> tag

The HTML <nav> tag is used to define the navigation within the site. The nav tag is usually part of a section tag with links to various other pages.

All links does not have to be part of the nav tag.

A document can have multiple nav tags to define multiple navigation for the page


The nav tag supports the global and event attributes.


<section> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Contact Us</a></li> <li><a href="#">Feedback</a></li> </ul> </nav> </section>

Useful Links & Related Tags:

  • Document Structure of a HTML page
  • <header> - used to define the header of the page or article
  • <footer> - used to define the footer of the page or article
  • <section> - used to define a section within the page
  • <article> - used to define an article which can stand on its own
  • <aside> - used to define extra (un)related content