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

Home >Web Front-end >Front-end Q&A >How to set header in html

How to set header in html

藏色散人
藏色散人Original
2021-06-03 15:38:175162browse

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>

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!

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