The nav tag in HTML5

Here we will learn about "nav" tag in HTML5.

The nav tag in HTML5

 
The <nav> tag is used to represent the group of navigation links. There may be multiple navigation block in a site. So, it is used to identify the block of navigation. This is a new tag in HTML5. We write the following code to understand its working. 
  1. <!DOCTYPE HTML>  
  2. <html>  
  3.     <body>  
  4.         <nav>  
  5.             <h1>nav example</h1>  
  6.             <a href=" ">Home</a>  
  7.             <a href=" ">About Us</a>  
  8.             <a href=" ">Nav Example</a>  
  9.         </nav>  
  10.     </body>  
  11. </html>  
The page will look like as below figure:
 
nav tag in html