HTML <nav> Tag
In this tutorial, we will learn about nav tag in HTML with the help of examples.
<nav> Tag
Nav tag <nav> is used to define a section that contains only navigation links.
Syntax
<nav>.........</nav>
Example
<!DOCTYPE html>
<html>
<head>
<title>Nav Tag</title>
</head>
<body>
<nav>
<a href = "html/introduction.html">Introduction </a>|
<a href = "html/anchor-tag.html">anchor Tag </a>|
<a href = "html/main-tag.html">main Tag </a>|
<a href = "html/meter-tag.html">meter Tag </a>|
</nav>
</body>
</html>
Output
Global Attribute
Nav Tag support all the global attributes of HTML.
Event Attribute
Nav Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of <nav> tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML <noscript>
Tag.