Home > Article > Web Front-end > What does nav mean in HTML5
In HTML5, the full name of nav is "navigation", which means "navigation" in Chinese. It is a navigation tag used to represent navigation in HTML pages; the nav tag will define an area containing navigation links, the syntax is " ".
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
In HTML5, the full name of nav is "navigation", which means "navigation" in Chinese.
HTML5
Not all HTML documents need to use the
According to the relevant standards of HTML5, the definition is as follows:
"A section of a page that links to other pages or to parts within the page:
a section with navigation links. "
Chinese translation probably means
"An area in a page used to link to other pages or the current page: an area containing navigation links"
The function of the nav tag is very clearly defined here. Similar to the header, it does not specify that it must be the main navigation, or it can be a sub-navigation in other parts of the page.
is as follows:
<nav> <a href="/html/">HTML</a> | <a href="/css/">CSS</a> | <a href="/js/">JavaScript</a> | <a href="/jquery/">jQuery</a> </nav>
In the above example, we see that this is just an area of article navigation. You can also use nav to define a small Navigation within the page. But not all link groups on the page need to be placed within the nav tag. It mainly consists of the main navigation block of the page. For example, we usually put a set of links in the footer of the website, including terms of service, website introduction, copyright statement, etc. At this time, we usually use footer instead of nav.
A page can contain multiple nav tags as navigation for the entire page or different parts. In the example below, there are two nav tags, one is the main navigation of the website, and the other is the auxiliary link navigation of the current page itself.
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does nav mean in HTML5. For more information, please follow other related articles on the PHP Chinese website!