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.
- <!DOCTYPE HTML>
- <html>
- <body>
- <nav>
- <h1>nav example</h1>
- <a href=" ">Home</a>
- <a href=" ">About Us</a>
- <a href=" ">Nav Example</a>
- </nav>
- </body>
- </html>
The page will look like as below figure: