HTML <address> tag
- closing tag
- required
- void element
- no
- lives inside
- usually <footer>, or inside an <article>
- typically holds
- contact details for the page or article author
Where it goes
In the site <footer> for the site's contact details, or inside an <article> for that article's author. Not for every street address on the page. A venue's address in body text is just a <p>.
Example
<footer>
<address>
Questions? <a href="mailto:hi@tagsmiths.com">hi@tagsmiths.com</a><br>
Tagsmiths, 12 Forge Lane
</address>
</footer>Open this example in the editor →
Common mistakes
- Wrapping any postal address in it. It means "how to contact the author," not "this text is an address." A list of store locations is ordinary content.
- Putting headings or whole sections inside it. It holds contact lines only, usually links and line breaks.
- Forgetting to turn off the italics with font-style: normal when they clash with the design.