<address>

The HTML <address> element displays contact details for the nearest article or section's author, commonly used for email, phone numbers, or physical addresses in a semantic format.

address tag

The <address> tag is used to present contact information related to a website or its author. This can include an email address, phone number, physical location, or links to relevant sites.

Syntax

index.html
<address>
  Contact Information
</address>

address Demo

You can contact the author at https://institute.qarpeo.com .
If you encounter any issues, please reach out to the webmaster.
Visit us at:
Example.com
Box 564, Disneyland
USA
index.html
<address>
  You can contact the author at
  <a href="https://institute.qarpeo.com/contact">
  www.institute.qarpeo.com</a>.<br />
  If you encounter any issues, please
  <a href="mailto:[email protected]">reach out to the webmaster</a>.<br />
  Visit us at:<br>
  Example.com<br>
  Box 564, Disneyland<br>
  USA
</address>

Definition and Usage

  • The <address> tag defines contact details for an article, section, or website owner.
  • It can include email, URLs, phone numbers, social media links, and physical addresses.
  • Browsers generally display the text in italics and automatically add line breaks before and after the element.
Use a <p> element for general addresses unrelated to contact details. The <address> tag should only contain contact information and is commonly placed in the <footer> section.

See also

Other section-related elements:

<body> <nav> <article> <aside> <h1> <h2> <h3> <h4> <h5> <h6> <hgroup> <footer> <section> <header>

Conclusion

The <address> tag is a semantic HTML element used to present contact details like email, phone numbers, and physical addresses. It is commonly placed in the footer and rendered in italics by default. The element allows links for easy communication but should be reserved for contact-related details, while general addresses belong inside a <p> element.