Tag address

🏠 HTML <address> Tag — Defining Contact Information

The <address> tag in HTML is a semantic block-level element used to define contact information for the author or owner of a document or section. It helps clarify who created the content and how to reach them.

This tag plays a small but important role in accessibility and semantic HTML structure.


📌 What Is the <address> Tag?

  • Used to contain physical, email, or other contact information.
  • Intended for authorship and ownership information — not postal addresses of random businesses.
  • Often found in the footer of web pages.
  • Typically renders in italic style by default in most browsers.
  • Helps search engines and assistive technologies identify contact blocks.

✅ Basic Syntax

<address>
Written by <a href="mailto:author@example.com">John Doe</a><br>
Visit us at: 123 Web Street, HTML City, WWW<br>
United States
</address>

🧪 Example Use Case in a Website Footer

<footer>
<p>&copy; 2025 MyPortfolioSite</p>
<address>
Contact: <a href="mailto:info@myportfolio.com">info@myportfolio.com</a><br>
New York, NY, USA
</address>
</footer>

📚 Best Practices

✔️ Do❌ Don’t
Use <address> for author/organization contact infoUse it for unrelated addresses
Place inside <footer> or at the end of an articleUse for generic physical locations
Include <a href="mailto:..."> for emailInsert navigation menus inside <address>
Keep it simple and readableOveruse for every name or brand mention

🎨 Styling Example (Optional)

By default, the tag is italicized. You can style it to fit your design:

address {
font-style: normal;
color: #666;
line-height: 1.6;
}

🚫 Misuse Example

<!-- Incorrect: This is not contact info for the author -->
<address>
Our store is located at 5th Avenue Mall, NY.
</address>

Use a <p> or <section> instead for general business addresses.


🏁 Summary

The <address> tag provides a semantic container for author or owner contact details. It is best suited for use in footers or at the end of blog posts to define who created the content and how to reach them.