HTML Tag Reference - HTML tag <nav>

The <nav> element marks a navigation section.

Browser compatibility

<nav> Yes 9.0 Yes Yes Yes

What's new in HTML5

The <nav> tag is new in HTML5.

Global Attributes

The <nav> tag supports the Global Attributes in HTML.

Event Attributes

The <nav> tag supports the Event Attributes in HTML.

Default CSS Settings

nav {
    display: block;


                    <li><a href="#">A</a></li> 
                        <li><a href="#">B</a></li> 
                    <li><a href="#">C</a></li> 
                    <li><a href="#">D</a></li>
                    <li><a href="#">E</a></li> 
</header> <!--from  w  w  w .  j  av  a  2s. c om-->

Click to view the demo