HTML5
HTML nav navigation link block
The <nav> tag (tag) is used to mark the content in the <nav> block as the main navigation area of this website or web page. The so-called navigation link is usually like the main menu at the top of the website (menu).
An HTML page can have many <nav> elements, for example one is used for website navigation and the other is used for in-page navigation.
for example:
<nav class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
Not all links need to be wrapped in <nav>, it only applies to the main navigation link. Generally , the links placed in the <footer> element usually do not need to be wrapped in the <nav>.
Post a Comment
0 Comments