Basic Syntax
The simplest form: wrap contact text inside <address>. Browsers display it in italics by default.
<address>
Email: contact@example.com
</address>
By the end of this tutorial, you’ll confidently mark up contact information with semantic HTML in real-world projects.
Write valid <address> elements for document-related contact details.
Understand when to use address vs regular text for postal information.
Place site-wide contact info inside <footer> elements.
Mark up bylines and article author details with mailto: links.
Override default italics and match your site’s design system.
Apply accessibility and semantic HTML best practices for contact sections.
<address> Tag?The address element (<address>) is a semantic HTML tag used to represent contact information for the author or owner of the nearest <article> or <body> element. It is commonly found in footers, article bylines, and author bio sections.
Use <address> for contact details related to the page itself—the site owner’s email, phone, or physical address. Do not use it for arbitrary business addresses mentioned in article body text.
The element is a flow content block that starts on a new line by default. Browsers render it in italics, and it is most often nested inside a <footer> for site-wide contact details or placed below a blog post for author information.
Wrap the relevant contact information inside opening and closing <address> tags:
<!-- Basic address syntax -->
<address>
Your Contact Information Here
</address><br> line breaks, and <a> links for email or phone.mailto: and tel: links for clickable contact actions.<address> inside another <address>.<footer>
<address>
Contact us at <a href="mailto:hello@example.com">hello@example.com</a>
</address>
</footer>| Use Case | Code Snippet | Result |
|---|---|---|
| Basic contact | <address>Email: contact@example.com</address> | Email: contact@example.com |
| Email link | <address><a href="mailto:...">...</a></address> | Contact hello@codetofun.com |
| Author byline | <address>Written by <a href="mailto:...">...</a></address> | Written by John Doe |
| Footer contact | <footer><address>...</address></footer> | Site-wide contact block |
| Phone link | <a href="tel:+15551234567">Call us</a> | Call us |
| Default style | <address>...</address> | Italic text by default |
The <address> tag has no tag-specific attributes. Use global HTML attributes for styling and identification:
class / id GlobalHook for CSS and JavaScript. Common pattern: class="author-info" or class="site-contact".
<address class="site-contact">style OptionalInline styling for quick overrides. Prefer CSS classes in production for maintainability.
style="font-style: normal;"lang OptionalHints the language of the contact information when it differs from the page language.
lang="en-US"Allowed content PhrasingText, links, and <br> elements. No nested <address> or block-level children.
Text, <a>, <br>The address element uses global attributes only. There are no tag-specific attributes in the HTML specification.
Real-world contact patterns with copy-ready code, live previews, and hands-on practice.
The simplest form: wrap contact text inside <address>. Browsers display it in italics by default.
<address>
Email: contact@example.com
</address>Apply class and style attributes to customize the appearance of author contact information.
<address class="author-info" style="font-style: italic;">
Author: John Doe <br>
Email: john.doe@example.com
</address>Here are the most frequent ways developers use the <address> tag in real projects.
Place author contact details below an article or page. Use mailto: links so visitors can email the author directly.
<address>
Written by <a href="mailto:author@example.com">John Doe</a>.<br>
Visit us at: 123 Main Street, Anytown, USA.
</address>The most common pattern: nest <address> inside <footer> alongside copyright text for site-wide contact information.
<footer>
<p>Copyright © 2026 Your Website Name</p>
<address>
Contact us at <a href="mailto:info@example.com">info@example.com</a>
</address>
</footer>Override the default italic style and match your site design:
default Italic textfont-style: normal Override italicsaddress a Link stylingfooter address Footer spacing/* Base address */
address {
font-style: normal;
color: #64748b;
font-size: 0.875rem;
line-height: 1.6;
}
/* Links inside address */
address a {
color: #2563eb;
text-decoration: underline;
}
/* Footer contact block */
footer address {
margin-top: 0.5rem;
}Live styled contact block
Wrap document-related contact details in <address>, often inside <footer>.
The element is exposed to assistive technology as contact information for the document. Default italic styling is applied.
mailto: and tel: links inside address open the email client or phone dialer.
Visitors find how to reach the author or site owner. Search engines and screen readers understand the purpose of the content.
The <address> tag is supported in every browser without polyfills or fallbacks.
From legacy Internet Explorer to the latest Chromium builds — the address element is one of the most universally supported semantic HTML tags.
Bottom line: Ship contact markup with confidence. The <address> element is safe to use in every production environment today.
By incorporating the <address> tag into your HTML documents, you provide valuable contact information and enhance the overall user experience.
Place it within a <footer> for site-wide details or near articles for author info. Use mailto: links, apply CSS for a polished look, and reserve the element for document-related contact—not arbitrary addresses in body content.
<address> inside <footer> for contact details related to the documentmailto: and tel: links for enhanced user interaction<address> for the author or site owner, not random businesses mentioned in content<address> for any postal address mentioned in article body text<address> inside another <address><address>Bookmark these before you ship — they’ll make every contact section clearer and more accessible.
<address> marks contact details for the document or article author—not any random address.
Commonly nested inside <footer> for site-wide contact details.
No tag-specific attributes—use class, id, and style for customization.
Include clickable email links inside address for direct contact.
EssentialBrowsers render address in italics by default—style it to match your design.
DesignSupported in every browser including IE. No polyfills or fallbacks required.
Compatibility<address> element represents contact information for the author or owner of the nearest article or body element—typically email, phone, or physical address in a footer or byline.<address> only for contact information related to the document itself. For unrelated business addresses in content, use regular paragraph text.<footer> for site-wide contact, or below an article for author details. It can appear anywhere document-related contact info is appropriate.class, id, style, and lang.mailto: and tel: links are standard inside <address> for clickable email and phone contact.Build a footer with address contact info and preview it instantly.
7 people found this page helpful