today i wanted to have a closer look over the nav element from html5. and i've seen on most websites that the way it should be used is with an ul li inside. Well that wouldn't be very semantic because the nav element already acts like a list. Even on MDN i've seen the example using nav ul li elements. But how about just simple nav with links inside and even dropdown
<nav>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#" id="dropdown-menu">Dropdown
<nav class="dropdown">
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
<a href="#">Some Text</a>
</nav>
</a>
</nav>
Is it semantic, is it wrong ? if it's correct the way i used why everyone uses ul li elements inside of nav ?
Update: just for the example i've updated the topic and added the css and js Javascript
$('#dropdown-menu').on("click", function(e) {
$('.dropdown').slideDown(100);
});
CSS
.dropdown {
display: none;
}