Coding Now – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 9667708830
Back to HTML Notes
Topic #809

The address Element

The <address> element marks contact information for a page or article's author — not a postal address in general, despite the name.

Syntax & Example

<footer>
    <address>
        Written by <a href="/team/aman">Aman Sharma</a>.
        Contact: <a href="mailto:aman@codingnowai.in">aman@codingnowai.in</a>
    </address>
</footer>

Browser output: most browsers render <address> content in italics by default — but that's just default styling, not the reason to use it.

What It's For (and What It's Not)

<address> is specifically for contact information related to the author of the document or article — not for any physical mailing address that happens to appear on a page, like a restaurant's location in a menu listing:

<!-- Correct use: author contact info -->
<address>
    Questions? Email <a href="mailto:support@codingnowai.in">support@codingnowai.in</a>
</address>

<!-- Incorrect use: this is just business location data, not authorship -->
<address>
    123 Main Street, Delhi, India
</address>

For a business's physical location that isn't about content authorship, a plain <p> (optionally with structured data for local SEO) is more appropriate.

Common Mistakes

  • Using <address> for any and every physical address on a page, rather than specifically author/site contact information
  • Nesting <address> inside another <address>, or placing headings/sectioning content inside it — not valid

Interview Relevance

A good "do you actually know the spec, not just the common tags" question — many experienced developers have never used <address> correctly, so a precise answer stands out.

Practice Question

Add an <address> element to a blog post footer with the author's name and a mailto link.

Related HTML Notes

Want to go beyond the notes?

Join CodingNow's HTML course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →