The address tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The <address> tag has the function of identifying the contact information of the author, the owner of the html document or the article.
If the <address> element is inside the <body> element, it represents the document's contact information.
If the <address> element is inside an <article> element, it represents contact information for that article.
Text in the <address> element is usually italicized. Most browsers will add a line break before and after the <address> element.
How to use the <address> . tag
Example : Use the <address> tag to describe the author's information.
<!DOCTYPE html> <html> <head> <title>Học lập trình miễn phí tại web888.vn</title> <meta charset="utf-8"> </head> <body> <h1>Học lập trình miễn phí tại web888.vn</h1> <address> Written by <a href="mailto:webmaster@example.com">Jon Doe</a>.<br> Visit us at:<br> Example.com<br> Box 564, Disneyland<br> USA </address> </body> </html>
Attribute of the <address> . tag
The <address> tag is provided with all HTML Global Attributes.