Learn HTML – Part 14 – address Tag – Defining Contact Information
The HTML address tag is used to define contact information related to a webpage or the author of the content.
It usually contains details such as email address, physical location, phone number, or website information.
What is the address Tag?
The address tag represents contact information for a person, organization, or the owner of the webpage.
Browsers typically display the content inside the address tag in italic style.
Basic Syntax
<address>
Contact information here
</address>
Example – Displaying Contact Information
<address>
Written by John Doe<br>
Email: john@example.com<br>
City: Calicut, India
</address>
Output:
Written by John DoeEmail: john@example.com
City: Calicut, India
Common Use Cases
- Author contact information
- Company contact details
- Website owner information
- Business location details
Important Notes
- The
addresstag should contain contact information only. - It is usually placed inside the
footeror near the author section. - It should not be used for general addresses unrelated to contact information.
Use the
addresstag only for contact information related to the webpage or its author.
Common Mistakes Beginners Make
- Using the
addresstag for any physical address - Using it purely for styling purposes
- Adding unrelated content inside the tag
Conclusion
The HTML address tag is used to display contact information related to a webpage or its author.
It improves the semantic structure of a webpage and helps users easily identify contact details.
What’s Next?
Now that you understand the address tag, the next step is learning about the article tag, which is used to represent independent content blocks in HTML.
Next: Learn HTML – Part 15 – article Tag – Representing Independent Content Blocks →
Series: Learn HTML Series
