I know the new HTML5 nav
element is for creating navigation menus...obviously...but anytime I see someone using it they tend to put a ul
inside of it, like so:
<nav>
<ul>
<li><a href=#>Item A</a></li>
<li><a href=#>Item B</a></li>
<li><a href=#>Item C</a></li>
</ul>
</nav>
Is that necessary? Is there an advantage to that? Is there any reason not to just write:
<nav>
<a href=#>Item A</a>
<a href=#>Item B</a>
<a href=#>Item C</a>
</nav>
Or, otherwise, why bother wrapping the ul
in the nav
? What's the point? Just to make your markup more "semantic"? Why not just use the ul
on its own?
` declares there are multiple options independent of each other.
– Brad Christie Feb 26 '15 at 20:35