Contact Info
HTML 2.0
The <address> element represents contact information for its nearest <article> or <body> ancestor. It typically includes email addresses, physical addresses, URLs, phone numbers, social media handles, or other contact methods. Despite its name, it’s not limited to physical addresses—it’s for any type of contact information.
Interactive code playground requires JavaScript. Here's the code:
<footer>
<address>
<p>Contact us:</p>
<p>Email: <a href="mailto:info@example.com">info@example.com</a></p>
<p>Phone: <a href="tel:+15551234567">(555) 123-4567</a></p>
<p>Address: 123 Web Street, San Francisco, CA 94102</p>
</address>
</footer>
<!-- Contact information -->
Note
The <address> element should contain contact information, not arbitrary addresses. Use it for ways to contact a person, organization, or the author of an article.
The <address> element has no element-specific attributes.
This element supports all global attributes .
Contact details for the entire website:
Interactive code playground requires JavaScript. Here's the code:
<footer style="background: #333; color: white; padding: 2rem;">
<div style="max-width: 1200px; margin: 0 auto;">
<h2>Contact Us</h2>
<address style="font-style: normal;">
<p><strong>TechCompany Inc.</strong></p>
<p>
123 Innovation Drive<br>
San Francisco, CA 94102<br>
United States
</p>
<p>
Email: <a href="mailto:contact@techcompany.com" style="color: #64b5f6;">contact@techcompany.com</a><br>
Phone: <a href="tel:+14155551234" style="color: #64b5f6;">+1 (415) 555-1234</a><br>
Support: <a href="tel:+14155555678" style="color: #64b5f6;">+1 (415) 555-5678</a>
</p>
</address>
<p style="margin-top: 2rem; opacity: 0.8;">© 2025 TechCompany Inc. All rights reserved.</p>
</div>
</footer>
Contact details for the author of an article:
Interactive code playground requires JavaScript. Here's the code:
<article>
<header>
<h1>Understanding Modern CSS Layouts</h1>
<p>Published: March 15, 2025</p>
</header>
<p>CSS has evolved significantly in recent years, offering powerful layout tools like Grid and Flexbox...</p>
<footer style="border-top: 2px solid #eee; padding-top: 1rem; margin-top: 2rem;">
<h2>About the Author</h2>
<div style="display: flex; gap: 1rem; align-items: start;">
<img src="author.jpg" alt="Jane Developer" style="width: 80px; height: 80px; border-radius: 50%;">
<div>
<p><strong>Jane Developer</strong></p>
<p>Senior Frontend Developer specializing in CSS architecture and web performance.</p>
<address style="font-style: normal; margin-top: 1rem;">
<p>
Email: <a href="mailto:jane@example.com">jane@example.com</a><br>
Website: <a href="https://janedev.com">janedev.com</a><br>
Twitter: <a href="https://twitter.com/janedev">@janedev</a><br>
GitHub: <a href="https://github.com/janedev">github.com/janedev</a>
</p>
</address>
</div>
</div>
</footer>
</article>
A compact business card-style contact section:
Interactive code playground requires JavaScript. Here's the code:
<aside style="border: 2px solid #667eea; border-radius: 8px; padding: 1.5rem; max-width: 300px; background: linear-gradient(135deg, #667eea15, #764ba215);">
<h2 style="margin-top: 0; color: #667eea;">Get in Touch</h2>
<address style="font-style: normal;">
<p style="margin: 0.5rem 0;">
<strong>📧 Email</strong><br>
<a href="mailto:hello@company.com">hello@company.com</a>
</p>
<p style="margin: 0.5rem 0;">
<strong>📞 Phone</strong><br>
<a href="tel:+15551234567">+1 (555) 123-4567</a>
</p>
<p style="margin: 0.5rem 0;">
<strong>📍 Location</strong><br>
San Francisco, CA
</p>
<p style="margin: 0.5rem 0;">
<strong>🌐 Social</strong><br>
<a href="https://twitter.com/company">Twitter</a> |
<a href="https://linkedin.com/company">LinkedIn</a>
</p>
</address>
</aside>
Contact information alongside a contact form:
Interactive code playground requires JavaScript. Here's the code:
<section>
<h2>Contact Us</h2>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;">
<div>
<h3>Send us a message</h3>
<form>
<div style="margin-bottom: 1rem;">
<label for="name" style="display: block; margin-bottom: 0.25rem;">Name</label>
<input type="text" id="name" name="name" style="width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px;">
</div>
<div style="margin-bottom: 1rem;">
<label for="email" style="display: block; margin-bottom: 0.25rem;">Email</label>
<input type="email" id="email" name="email" style="width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px;">
</div>
<div style="margin-bottom: 1rem;">
<label for="message" style="display: block; margin-bottom: 0.25rem;">Message</label>
<textarea id="message" name="message" rows="4" style="width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px;"></textarea>
</div>
<button type="submit" style="background: #667eea; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer;">Send Message</button>
</form>
</div>
<div>
<h3>Contact Information</h3>
<address style="font-style: normal;">
<p><strong>Customer Support</strong></p>
<p>
Email: <a href="mailto:support@company.com">support@company.com</a><br>
Phone: <a href="tel:+15551234567">+1 (555) 123-4567</a><br>
Hours: Monday-Friday, 9am-5pm PST
</p>
<p style="margin-top: 1.5rem;"><strong>Office Location</strong></p>
<p>
123 Business Avenue<br>
Suite 456<br>
San Francisco, CA 94102<br>
United States
</p>
<p style="margin-top: 1.5rem;"><strong>Follow Us</strong></p>
<p>
<a href="https://twitter.com/company">Twitter</a> |
<a href="https://facebook.com/company">Facebook</a> |
<a href="https://linkedin.com/company">LinkedIn</a>
</p>
</address>
</div>
</div>
</section>
Contact information for different office locations:
Interactive code playground requires JavaScript. Here's the code:
<section>
<h2>Our Offices</h2>
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;">
<article style="border: 1px solid #ddd; padding: 1.5rem; border-radius: 8px;">
<h3>San Francisco</h3>
<address style="font-style: normal;">
<p>
123 Tech Street<br>
San Francisco, CA 94102
</p>
<p>
Phone: <a href="tel:+14155551234">+1 (415) 555-1234</a><br>
Email: <a href="mailto:sf@company.com">sf@company.com</a>
</p>
</address>
</article>
<article style="border: 1px solid #ddd; padding: 1.5rem; border-radius: 8px;">
<h3>New York</h3>
<address style="font-style: normal;">
<p>
456 Innovation Ave<br>
New York, NY 10001
</p>
<p>
Phone: <a href="tel:+12125555678">+1 (212) 555-5678</a><br>
Email: <a href="mailto:ny@company.com">ny@company.com</a>
</p>
</address>
</article>
<article style="border: 1px solid #ddd; padding: 1.5rem; border-radius: 8px;">
<h3>London</h3>
<address style="font-style: normal;">
<p>
789 Digital Road<br>
London EC1A 1BB<br>
United Kingdom
</p>
<p>
Phone: <a href="tel:+442071234567">+44 20 7123 4567</a><br>
Email: <a href="mailto:london@company.com">london@company.com</a>
</p>
</address>
</article>
</div>
</section>
Contact information focused on social media channels:
Interactive code playground requires JavaScript. Here's the code:
<footer>
<h2>Connect With Us</h2>
<address style="font-style: normal;">
<p>Follow us on social media for the latest updates:</p>
<ul style="list-style: none; padding: 0;">
<li style="margin-bottom: 0.75rem;">
<strong>📘 Facebook:</strong>
<a href="https://facebook.com/company">facebook.com/company</a>
</li>
<li style="margin-bottom: 0.75rem;">
<strong>🐦 Twitter:</strong>
<a href="https://twitter.com/company">@company</a>
</li>
<li style="margin-bottom: 0.75rem;">
<strong>📷 Instagram:</strong>
<a href="https://instagram.com/company">@company</a>
</li>
<li style="margin-bottom: 0.75rem;">
<strong>💼 LinkedIn:</strong>
<a href="https://linkedin.com/company/company">linkedin.com/company/company</a>
</li>
<li style="margin-bottom: 0.75rem;">
<strong>📺 YouTube:</strong>
<a href="https://youtube.com/@company">youtube.com/@company</a>
</li>
</ul>
<p style="margin-top: 1.5rem;">
For business inquiries:<br>
<a href="mailto:partnerships@company.com">partnerships@company.com</a>
</p>
</address>
</footer>
Email addresses
Phone numbers
Physical addresses
Social media profiles
Website URLs
Contact forms
Business hours (when related to contact)
Arbitrary postal addresses (unless they’re for contact purposes)
Author publication dates
Generic descriptive text
Content not related to contact information
<!-- Good: Contact information -->
< p > Phone: < a href = " tel:+15551234567 " > (555) 123-4567 </ a ></ p >
<!-- Wrong: Non-contact information -->
< p > Published on March 15, 2025 </ p > <!-- Not contact info -->
< p > 123 Random Street </ p > <!-- Not for contact purposes -->
<!-- Good: Physical address for contact -->
< p > Visit our office at: </ p >
< p > 123 Business St, San Francisco, CA 94102 </ p >
< p > Open Monday-Friday, 9am-5pm </ p >
Browsers typically render <address> in italics. Override this if desired:
< address style = " font-style: normal; " >
Use appropriate elements and attributes for contact information:
<!-- Email with mailto: -->
< p > Phone: < a href = " tel:+15551234567 " > +1 (555) 123-4567 </ a ></ p >
<!-- Physical address with proper line breaks -->
<!-- URLs with proper links -->
< p > Website: < a href = " https://example.com " > example.com </ a ></ p >
The <address> element’s scope depends on its context:
<!-- Page-level contact (in footer) -->
<!-- Contact info for the site/organization -->
<!-- Article-level contact -->
<!-- Contact info for article author -->
Use headings and other semantic elements within address:
< h2 > Contact Information </ h2 >
The <address> element has no implicit ARIA role, but it has semantic meaning:
< p > Contact information here </ p >
Provide context for contact links:
<!-- Good: Clear link text -->
< p > Call us: < a href = " tel:+15551234567 " > +1 (555) 123-4567 </ a ></ p >
<!-- Avoid: Unclear links -->
Use <abbr> for abbreviated terms:
< abbr title = " California " > CA </ abbr > 94102 < br >
< abbr title = " United States of America " > USA </ abbr >
Browser Version Chrome All versions Firefox All versions Safari All versions Edge All versions IE All versions
<!-- Wrong: Shipping address (not for contact) -->
<!-- Correct: Use div or section -->
<!-- Correct: Use address for contact info -->
<!-- Wrong: Nested address elements -->
<!-- Correct: Single address element -->
<!-- Wrong: Publication info in address -->
Published by Jane Doe on March 15, 2025
<!-- Correct: Separate metadata from contact -->
< p class = " byline " > Published by Jane Doe on March 15, 2025 </ p >