HTML - <nav> Tag


Advertisements


Description

The HTML <nav> tag specifies a section that contains only navigation links.

Example

Live Demo
<!DOCTYPE html>
<html>

   <head>
      <title>HTML Nav Tag</title>
   </head>

   <body>
      <p>Database Tutorials:</p>
      <nav>
         <a href = "dbms/index.htm">DBMS</a> |
         <a href = "mongodb/index.htm">MongoDB</a> |
         <a href = "mysql/index.htm">MySQL</a> |
         <a href = "plsql/index.htm">PL/SQL</a> |
         <a href = "sql/index.htm">SQL</a> 
      </nav>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements