- Starting a New Paragraph
- Adding Author Contact Information
- Creating a Figure
- Specifying Time
- Marking Important and Emphasized Text
- Indicating a Citation or Reference
- Quoting Text
- Highlighting Text
- Explaining Abbreviations
- Defining a Term
- Creating Superscripts and Subscripts
- Noting Edits and Inaccurate Text
- Marking Up Code
- Using Preformatted Text
- Specifying Fine Print
- Creating a Line Break
- Creating Spans
- Other Elements
Adding Author Contact Information
You might think the address element is for marking up a postal address, but it isn’t (except for one circumstance; see the tips). In fact, there isn’t an HTML element explicitly designed for that purpose.
Instead, address defines the contact information for the author, people, or organization relevant to an HTML page (usually appearing at the end of the page, if at all) or part of a page, such as within a report or a news article ( and ).
This page has two address elements: one for the article’s author and the other in a page-level footer for the people who maintain the whole page. Note that the address for the article contains contact information only. Although the background information about Tracey Wong is also in the article’s footer, it’s outside the address element.
<article><h1>Museum Opens on the Waterfront</h1> <p>The new art museum not only introduces a range of contemporary works to the city, it's part of larger development effort on the waterfront.</p> ... [rest of story content] ... <!-- the article's footer with address information for the article --> <footer> <p>Tracey Wong has written for <cite> The Paper of Papers</cite> since receiving her MFA in art history three years ago.</p>
Email her at <a href="mailto: email@example.com"> firstname.lastname@example.org </a>.
</article><!-- the page's footer with address information for the whole page --> <footer> <p><small>© 2011 The Paper of Papers, Inc.</small></p>
Have a question or comment about the site? <a href="site-feedback.html"> Contact our Web team</a>.
</address></footer> </body> </html>
The address element renders in italics by default.
To provide the author’s contact information
- If you want to provide author contact information for an article, place the cursor within that article. Alternatively, place the cursor within the body (or, more commonly, the page-level footer) if you want to provide author contact information for the page at large.
- Type <address>.
- Type the author’s email address, a link to a page with contact information, and so on.
- Type </address>.