Home  >  Article  >  Web Front-end  >  What does header mean?

What does header mean?

云罗郡主
云罗郡主Original
2019-01-11 15:43:4938459browse

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>


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