HTML <address> Element
The <address> tag in HTML is used to define contact information for the author of a document or article. It is typically displayed in italic font and may include the author's name, address, phone number, email address, or any other relevant contact information.
Example:
<address>
John Doe
123 Main Street
Anytown, USA
Phone: 555-123-4567
Email: johndoe@email.com
</address>
Attributes of the <address> Tag:
| Attribute | Description |
|---|---|
align |
Specifies the alignment of the address content. Can be set to left, right, or center. |
Here is an example of using the align attribute:
<address align="center">
John Doe
123 Main Street
Anytown, USA
</address>
When displayed in the browser, the address information will be centered on the page.