1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
---
title: <footer>
slug: Web/HTML/Element/footer
tags:
- Element
- HTML
- HTML sections
translation_of: Web/HTML/Element/footer
---
<p>{{HTMLRef}}</p>
<p><strong>HTML <footer> 元素</strong>表示最近一个<a href="/en-US/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Defining_Sections_in_HTML5">章节内容</a>或者<a href="/en-US/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Sectioning_root" title="Sections and Outlines of an HTML5 document#Sectioning root">根节点</a>(sectioning root )元素的页脚。一个页脚通常包含该章节作者、版权数据或者与文档相关的链接等信息。</p>
<p> </p>
<p>{{EmbedInteractiveExample("pages/tabbed/footer.html", "tabbed-standard")}}</p>
<p> </p>
<ul class="htmlelt">
<li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">内容分类</a></dfn> <a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>, 可触内容。</li>
<li><dfn>允许的内容</dfn> <a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>,但是不能包含<footer>或者{{HTMLElement("header")}}。</li>
<li><dfn>标签省略</dfn> {{no_tag_omission}}</li>
<li><dfn>允许的父元素</dfn>任何接收<a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>的元素。注意<footer>元素必须不能是 {{HTMLElement("address")}}, {{HTMLElement("header")}} 或者另一个<code><footer></code> 元素的后代元素。</li>
<li><dfn>DOM 接口</dfn> {{domxref("HTMLElement")}}</li>
</ul>
<h2 id="属性">属性</h2>
<p>该元素仅包含 <a href="/en-US/docs/HTML/Global_attributes">全局属性</a>。</p>
<h2 id="使用说明">使用说明</h2>
<ul>
<li><footer>元素内的作者信息应包含在{{HTMLElement("address")}} 元素中。</li>
<li><footer>元素不是章节内容,因此在<a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">outline</a>中不能包含新的章节。</li>
</ul>
<h2 id="例子">例子</h2>
<pre class="brush: html"><footer>
Some copyright info or perhaps some author info for an &lt;article&gt;?
</footer>
</pre>
<h2 id="Specifications" name="Specifications">规范</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">规范</th>
<th scope="col">状态</th>
<th scope="col">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'sections.html#the-footer-element', '<footer>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'sections.html#the-footer-element', '<footer>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p> </p>
<p>{{Compat("html.elements.footer")}}</p>
<p> </p>
<h2 id="参见">参见</h2>
<ul>
<li>其他section相关的元素: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("section")}}, {{HTMLElement("address")}};</li>
<li class="last"><a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">Sections and outlines of an HTML5 document</a>.</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Contentinfo_role">ARIA: Contentinfo role</a></li>
</ul>
|