The nav tag in HTML5

Introduction: The <nav> tag is used to represent the group of navigation link. There may be multiple navigation block in a site. So, it is used to identify the the block of navigation. This is 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

nav tag in html

Ebook Download
View all
Learn
View all