What is the usage of nav in html5

WBOY
Release: 2021-12-21 16:56:44
Original
5521 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!