link code"; the nav tag is only used to mark the area of ​​a navigation link and has no actual display effect."/> link code"; the nav tag is only used to mark the area of ​​a navigation link and has no actual display effect.">

Home >Web Front-end >Front-end Q&A >What is the usage of nav in html5

What is the usage of nav in html5

WBOY
WBOYOriginal
2021-12-21 16:56:445703browse

In HTML5, the nav tag is used to define the navigation link. It is a semantic tag with the syntax "

"; the nav tag is only used to mark a navigation link. area, there is no actual display effect.

What is the usage of nav in html5

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What is the usage of nav in html5

Not all HTML documents need to use the

In the HTML5 version, many new semantic tags have been added, such as: header tag, footer tag, aside tag, nav tag, etc. These semantic labels have no actual display effect and only play a semantic role.

"nav" is the abbreviation of the English word "navigation", which means "navigation".

The example is as follows:

<html>
<head> 
<meta charset="utf-8"> 
<title>123</title> 
</head>
<body>
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
</body>
</html>

Output result:

What is the usage of nav in html5

##Recommended tutorial: "

html video tutorial

The above is the detailed content of What is the usage of nav in html5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn