English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML 参考手册

HTML 标签大全

HTML: <footer> Tag

HTML <footer>标记是一个HTML5元素,该元素定义通常在HTML文档中包含版权或作者信息的页脚。此标记通常也称为 <footer>元素。

在线示例

文档的页脚:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 footer标签的使用(基础教程网 oldtoolbag.com)</title>
</head>
<body>
<article>
  <h1>Heading for Article</h1>
  <p>Text that appears under article</p>
</article>
<footer>
  <p>Copyright ©2019</p>
</footer>
</body>
</html>
测试看看 ‹/›

在此HTML5文档示例中,我们首先创建了<article>标签,然后创建了<footer>标签。

浏览器兼容性

IEFirefoxOperaChromeSafari

IE 9、Firefox、Opera、Chrome 和 Safari 支持 <footer> 标签。

注释:IE 8 或更早版本的 IE 浏览器不支持 <footer> 标签。

Tag definition and usage instructions

The <footer> tag defines the footer of a document or a part of the document area.

The <footer> element should contain information about the elements it contains.

The <footer> tag can be applied to <article>, <section>, <body>, <aside>, <nav>, <blockquote>, <details>, <fieldset>, <td>, or <figure>.

In typical cases, the element will contain the name of the document creator, copyright information of the document, links to terms of use, contact information, and so on.

In a document, you can define multiple <footer> elements.

HTML 4.01 with HTML5differences

The <footer> tag is part of HTML 5 in the new tags.

Hints and Notes

Hint:If you use the <footer> element to insert contact information, you should use it within the <footer> element. <address> Tag.

Global Attributes

Support for <footer> Tag Global Attributes of HTML.

Event Attributes

Support for <footer> Tag HTML Event Attributes.