I have the following structure that seems really nice for me and I always use HTML5:
Since the release of HTML 5, can be used for website navigation block instead of
div
.
Referring to the HTML Standard
The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links.
The HTML Standard includes an example that use followed by
and .
But it also says
A nav element doesn't have to contain a list, it can contain other kinds of content as well.
Based on the Standard, the use of ul
and li
is personal preference as long as you have nav
to indicate navigation.