html nav tag


  Translation results:

abbr.navigate sailing; navigation sailing; navigational sailing; navigable navigable

html nav tagsyntax

Function:Define the part of the navigation link.

Description: <nav> tag is a new tag in HTML 5.

Note: If there is a "before and after" button in the document, it should be placed in the <nav> element.

html nav tagexample

<!DOCTYPE html>
<html>
<body>

<nav>
    <a href="/course">教程</a> |
    <a href="/wenda">问答</a> |
    <a href="/article">文章</a> |
    <a href="/shouce">手册</a>
</nav>
<p>nav标签用来标识网站的导航</p>
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A