Address Element for Contact Information
You'll learn how to use the <address> element to semantically mark up contact information so browsers and assistive technologies can identify it properly.
What Is the Address Element?
The <address> element is a semantic HTML tag designed specifically to wrap contact information—but not just any contact information. It should contain contact details for the author or owner of the nearest <article> or the entire document.
Think of <address> like a business card: it tells visitors (and screen readers) "here's how to reach the person or organization responsible for this content."
When to Use It
Use <address> for:
- Email addresses
- Physical mailing addresses
- Phone numbers
- Social media links
- Website URLs
related to the document's author or the organization behind the content.
Don't use it for arbitrary addresses mentioned in your content (like "the store is located at..."). Those should use <p> or similar elements.
Example in Context
<footer>
<address>
Contact us at <a href="mailto:hello@example.com">hello@example.com</a><br>
Visit our office at 123 Main Street, Anytown, USA<br>
Call: <a href="tel:+15551234567">(555) 123-4567</a>
</address>
</footer>
By default, browsers typically style <address> content in italics, but you can override this with CSS.
Scope Matters
If you place <address> inside an <article>, it represents contact info for that article's author. Outside any <article>, it represents contact info for the entire page or site.
Key Takeaway: The <address> element semantically identifies contact information for content authors or owners, making your site more accessible and meaningful to assistive technologies and search engines.