HTML
<footer>
element
represents a footer for its nearest
区间内容
or
区间根
element. A footer typically contains information about the author of the section, copyright data or links to related documents.
| 内容类别 | 流内容 ,可触及内容。 |
|---|---|
| 准许内容 |
流内容
, but with no
<footer>
or
<header>
descendants.
|
| Tag omission | None, both the starting and ending tag are mandatory. |
| Permitted parents |
Any element that accepts
flow content
. Note that a
<footer>
element must not be a descendant of an
<address>
,
<header>
or another
<footer>
元素。
|
| Implicit ARIA role |
contentinfo
,或
no corresponding role
if a descendant of an
文章
,
aside
,
main
,
nav
or
section
element, or an element with
role=
文章
,
complementary
,
main
,
navigation
or
region
|
| Permitted ARIA roles |
group
,
presentation
or
none
|
| DOM 接口 |
HTMLElement
|
此元素只包括 全局属性 .
<address>
element that can be included into the
<footer>
元素。
<footer>
element is not sectioning content and therefore doesn't introduce a new section in the
outline
.
<footer> Some copyright info or perhaps some author info for an <article>? </footer>
Prior to the release of Safari 13, the
contentinfo
landmark role
was not properly exposed by
VoiceOver
. If needing to support legacy Safari browsers, add
role="contentinfo"
到
footer
element to ensure the landmark will be properly exposed.
| 规范 | 状态 | 注释 |
|---|---|---|
|
HTML 实时标准
The definition of '<footer>' in that specification. |
实时标准 | |
|
HTML5
The definition of '<footer>' in that specification. |
推荐 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
footer
|
Chrome 完整支持 5 | Edge 完整支持 12 | Firefox 完整支持 4 | IE 完整支持 9 | Opera 完整支持 11.1 | Safari 完整支持 5 | WebView Android 完整支持 Yes | Chrome Android 完整支持 Yes | Firefox Android 完整支持 4 | Opera Android 完整支持 11.1 | Safari iOS 完整支持 4.2 | Samsung Internet Android 完整支持 Yes |