HTML Nav Tag

HTML Nav TagHTML Nav Tag <nav> is used to define a section of links, used for navigation, in an HTML Resource or webpage.

It’s not important to keep all the links of a resource or webpage in the HTML Nav tag, only the major and important links should be kept in the Nav tag .

HTML Nav Tag <nav> is a closed tag and needs a closing Nav Tag </nav>.


Syntax of HMTL Nav Tag

<nav>
Some links here..
</nav>

Example of HTML Nav Tag

HTML Nav Tag Code Output
<nav>
<a href="http://techhoney.com/oracle-sql-plsql/">PL/SQL</a>,
<a href="http://techhoney.com/category/oaf-miscellaneous/">OA Framework</a>,
</nav>

In the example above we can see that we have created 2 links, one for Oracle PL/SQL and another for OA Framework by using  Nav HTML Tag.

Once we click on any of the link we will be able to navigate to the corresponding page and view all the content.

HTML Nav Tag supports all HTML Global Attributes and HTML Event Attributes


HTML Nav Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes (from IE-9 onwards)
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , , , , , , , , , . Bookmark the permalink.