HTML: tag <nav>

Descrizione

Il tag HTML <nav> specifica una sezione che contiene solo collegamenti di navigazione.

Esempio

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

Questo produrrà il seguente risultato:

Attributi globali

Questo tag supporta tutti gli attributi globali descritti in - Riferimento agli attributi HTML

Attributi dell'evento

Questo tag supporta tutti gli attributi degli eventi descritti in HTML Events Reference

Supporto browser

Cromo Firefox IE musica lirica Safari Android
sì sì sì sì sì sì