Home > Web Front-end > H5 Tutorial > What does the header tag in HTML5 mean? Do you know how to use the header tag in HTML5?

What does the header tag in HTML5 mean? Do you know how to use the header tag in HTML5?

寻∝梦
Release: 2018-08-15 17:48:28
Original
9026 people have browsed it

What does the header tag in HTML5 mean? Do you know how to use the header tag in HTML5? This article mainly introduces the HTML5 head tag

in detail, explaining the usage method and instructions

Introduction to the homepage:

<header>
<h1>Welcome to my homepage</h1>
<p>My name is Donald Duck</p>
</header>
<p>The rest of my home page...</p>
Copy after login

HTML The definition and usage of the header tag:

tag defines the header (introduction information) of the document.

HTML

element is used to represent some preface or navigation content. It can contain some title elements, and can also place some elements such as logos, search boxes, or other
elements.

Instructions for use:

The

element is not an element that can form paragraph content, so it does not need to be reflected in the content directory.

Usage examples:

<header>
  a logo
</header>
Copy after login

Differences between HTML 4.01 and HTML 5

The

tag is a new tag in HTML 5.

: Describes the header area of ​​the document, which is used to define the introduction and display area of ​​the content.

The header tag is different from the head tag we are most familiar with. Header is often more commonly used. Define the header of the article. Let’s briefly analyze the usage of the header tag in HTML5:

tag defines the header of the document, usually some guidance and navigation information. It is not limited to being written in the header of the web page, but can also be written in the content of the web page.

The header tag is defined as follows in the new standard:

"A group of introductory or navigational aids.”
Copy after login

The basic meaningis"A set of introductory navigation-related aids content". Literally understood, the header tag not only defines the content of the page header, but can also define the introduction of other content below the page header. This is not completely consistent with our traditional page header definition.

Usually the

tag contains at least (but is not limited to) a header tag (

-

), and can also include the
tag, and can also include table content, Logo, search form,
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