How to set header in html

藏色散人
Release: 2021-06-03 15:38:17
Original
5109 people have browsed it

htmlHow to set header: First create an HTML sample file; then enter the "

" tag in the body; finally enter the document or part of the document in the tag Just the header content.

How to set header in html

The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.

How to set header in html?

tag defines the header of a document or a part of a document. The

element should serve as a container for introductory content or a navigation link bar.

In a document, you can define multiple

elements.

Note: The

tag cannot be placed inside a
,
or another
element.

Note: IE 9, Firefox, Opera, Chrome and Safari support the

tag.

Note: IE 8 or earlier does not support the

tag.

Example: The header of

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>/title> 
</head>
<body>
<article>
  <header>
    <h1>Internet Explorer 9</h1>
    <p><time pubdate datetime="2011-03-15"></time></p>
  </header>
  <p> Windows Internet Explorer 9(缩写为 IE9 )是在2011年3月14日21:00发布的</p>
</article>
</body>
</html>
Copy after login

Effect:

How to set header in html

##[Recommended learning:

html video tutorial

The above is the detailed content of How to set header in html. 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