Learn HTML – Part 14 – address Tag – Defining Contact Information

Understanding the <address> Tag in HTML

The <address> tag is used to define contact information for the author/owner of a document or an article. Typically, it includes names, physical addresses, email addresses, phone numbers, etc.

Tag Syntax:

<address>
Contact us at: <a href="mailto:support@example.com">support@example.com</a><br>
123 Web Street, Code City
</address>
  • Use <br> for line breaks inside the address block.
  • Often placed inside <footer> for website-wide contact info

Common Uses:

  • Displaying contact information in blog footers
  • Marking up author details in articles
  • Structuring vCards or signature blocks in HTML emails

Tip:

Use it only for contact-related content. Avoid using it for general location or unrelated text.

Example:

<address>
Written by <a href="mailto:john@example.com">John Doe</a><br>
Visit us at:<br>
123 Developer Lane, Tech City
</address>

Workbook:

Facebook
WhatsApp
Twitter
LinkedIn
Pinterest

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top