Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it semantically correct to include two <nav> elements on a page for primary AND secondary navigation?

Tags:

html

My page has two sections where there are a "list of links". The first is the primary i.e.

<nav>
    <ul>
        <li><a href="/">Homepage</a></li>
        <li><a href="/testimonies.html">Testimonies</a></li>
        <li><a href="/contact-us.html">Contact Us</a></li>
        ...
    </ul>
</nav>

This is a no brainer, ‘nav‘ is suitable here.

The second list of links is a list of categories such as:

Rock Music
Dubstep Music
Dance Music
Hip Hop Music
Electro Music
Classical Music
...

Is it semantically correct to use a element for the secondary list?

like image 890
James Jeffery Avatar asked Nov 15 '25 21:11

James Jeffery


1 Answers

Depending on the documentation...seems legit. There is an example with two nav elements for primary and secondary navigation as well.

http://www.w3.org/html/wg/drafts/html/master/sections.html#the-nav-element

like image 135
dersvenhesse Avatar answered Nov 18 '25 11:11

dersvenhesse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!