Home > Web Front-end > H5 Tutorial > html5 new tag--nav tag introduction

html5 new tag--nav tag introduction

青灯夜游
Release: 2018-09-11 15:39:31
Original
4540 people have browsed it

The nav element tag is a new tag added to HTML5. This chapter will bring you an introduction to the nav tag, a new tag in HTML5. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

First of all, nav is also a new element tag in html5. At the same time, like other new tags, nav is used as a common name related to the navigation bar in the traditional HTML layout of previous versions of HTML5.

For example:

<div class=”nav”>网站导航内容</div>
Copy after login

or

<div id=”nav”>网站导航内容</div>
Copy after login

In HTML5, the previously commonly used named nav is specially used as a new tag element. This tag is often used in navigation layout.

1. HTML nav tag syntax and structure

1. Basic syntax

<nav>内容</nav>
Copy after login

2. nav plus id

<nav id=”abc”>内容</nav>
Copy after login

3. Add class to nav

<nav class=”abc”>内容</nav>
Copy after login

4. Quickly understand and master the nav tag

Nav is related to navigation, so it is generally used for website navigation layout. At the same time, the

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