The <address> Element
You'll learn how to mark up contact information so browsers and search engines understand it's not just any text.
What Is the <address> Element?
The <address> element is a semantic HTML tag specifically designed to wrap contact information for a person, organization, or article. Think of it like a business card holder—it tells everyone "the information inside here is how you get in touch."
Why Not Just Use Plain Text?
You could write contact details in a regular <p> tag, but <address> adds meaning. It tells browsers, screen readers, and search engines: "This isn't just random text—these are actual contact details." This improves accessibility and SEO.
Where Does It Go?
Typically, you'll place <address> inside:
- A
<footer>(for the whole site's contact info) - An
<article>(for the author's contact details)
What Goes Inside?
Physical addresses, email links, phone numbers, social media—any way to contact the relevant person or organization. You can use other HTML elements inside, like links or line breaks.
<footer>
<address>
Written by Jane Developer<br>
Email: <a href="mailto:jane@example.com">jane@example.com</a><br>
123 Web Street, Internet City
</address>
</footer>
The Analogy
If your webpage were a magazine article, the <address> element is like the little box at the end that says "Contact the author at..." It's standard, expected, and everyone knows what it means.
Key Takeaway: Use <address> to semantically mark up contact information, making it clear to both humans and machines that this is how to get in touch.