<footer>


HTML <footer> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head>
<body>

<footer>
  <p>Posted by: Hege Refsnes</p>
  <p><time pubdate datetime="2012-03-01"></time></p>
</footer>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

IE 9, Firefox, Opera, Chrome and Safari support the <footer> tag.

Note: IE 8 or earlier versions of IE browsers do not support the <footer> tag.


Tag definition and usage instructions

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

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

Typically, this element will contain the name of the document's creator, the document's copyright information, a link to the terms of use, contact information, and so on.

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


Differences between HTML 4.01 and HTML5

The<footer> tag is a new tag in HTML 5.


Tips and Notes

Tip: If you use the <footer> element to insert contact information, you should use < inside the <footer> element address> tag.


Global attributes

The<footer> tag supports HTML global attributes.


Event attributes

<footer> tag supports HTML event attributes.