Home > Web Front-end > Front-end Q&A > What does header mean?

What does header mean?

云罗郡主
Release: 2019-01-15 11:45:15
Original
38478 people have browsed it

What does header mean?

1: What does header mean?

Header is a structural element with navigation function, which may contain some title elements and other elements. Such as search form, navigation, logo, etc., the header element that generally appears at the top of the page or near this position becomes the header of the entire page.

2: How to use header

If a page contains multiple content blocks, you can add a header element to each content block. In other words, a page can have Any number of header elements, their meaning can vary depending on context.

The

element has no sliced ​​content and therefore does not introduce a new section outline, that is, a
element usually contains the surrounding section headers (h1-h6), Of course, you should only use header elements when necessary. In most cases, if using h1~h6 can meet the needs, there is no need to wrap them with header. You cannot nest a footer or another header element within a header, nor can you nest a header element within a footer or address element. For example:

<body>
<header>
<nav>
<ul>
<li><a href="http://www.php.cn/">php中文网</a>
<li><a href="http://www.php.cn/">php中文网</a>
<li><a href="http://www.php.cn/">php中文网</a>
</ul>
</nav>
<h1>php中文网</h1>
<h2>php中文网</h2>
<p>php中文网</p>
<h2>php中文网</h2>
<p>php中文网</p>
</header>
</body>
Copy after login


The above is the detailed content of What does header mean?. 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