HTML <footer>
Tag Tutorial
The <footer>
tag defines a footer for a document or section. It typically contains information about the author, copyright information, links to related documents, contact information, etc.
Here is an example of how the <footer>
tag is used:
<footer>
<p>Copyright © 2023 My Website. All Rights Reserved.</p>
</footer>
Main Attributes of the <footer>
Tag
Attribute | Description |
---|---|
align |
Specifies the alignment of the footer content. Possible values are left , center , and right . |
valign |
Specifies the vertical alignment of the footer content. Possible values are top , middle , and bottom . |
style |
Specifies an inline CSS style for the footer element. |
class |
Specifies one or more class names for the footer element. This is used to reference the element in a CSS or JavaScript. |