Computer >> Computer tutorials >  >> Programming >> HTML

Section that contains only navigation links in HTML5


The HTML <nav> tag specifies a section that contains only navigation links. You can try to run the following code to implement <nav> tag in HTML5 −

Example

<!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>