The < Nav > Element

The <nav> Element is basically used to define a set of navigational links. It can be defined as a section of page or part of a page which links to another page or parts within the page. The <nav> element is also common for footer section for linking to another page and for sidebar menu.

There are some attributes of <nav> element:-
Accesskey
Class
Contenteditable
Contextmenu
Dir
Draggable
Hidden
I’d
Lang
Spellcheck
Style
Tabindex
Title
Here we will illustrate an example putting the <nav> element in the script:

 Code

 

 

 

Output