引进于 HTML5
概述
<header>元素表示一组引导性的帮助,可能包含标题元素,也可以包含其他元素,像logo、分节头部、搜索表单等。
使用说明:
<header>元素不是分节内容,所以不会引入新的分节到大纲中。
- Content categories Flow content, palpable content.
- 许可内容Flow content,但是不包含
<header>和<footer> - 标记省略 None, both the starting and ending tag are mandatory.
- 父元素任何接受 flow content 的元素。注意
<header>元素不能作为<address>,<footer>或其他<header>元素的子元素。 - DOM interface
HTMLElement
属性
只具有全局属性.
示例
<header> a logo </header>
标准
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard | Living Standard | |
| HTML5 | Candidate Recommendation |
浏览器兼容
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 5 | 4.0 (2.0) | 9.0 | 11.10 | 4.1 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 2.2 | 4.0 (2.0) | 9.0 | 11.0 | 5.0 (iOS 4.2) |
相关文章
- A more detailed description: The header element | HTML5 Doctor
- Others section-related elements:
<body>,<nav>,<article>,<aside>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<hgroup>,<footer>,<section>,<address>; - Sections and outlines of an HTML5 document.