Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > HTML/XHTML

  • Print
  • + Share This
  • 💬 Discuss

Adding Author Contact Information

You might think the address element is for marking up a postal or street address, but it isn’t (except for one circumstance; see the first tip). 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 responsible for either a part of a webpage (such as a news article, product review, or report) or a whole page (red-a.jpg and red-b.jpg). Which of those is true depends on where address appears. The first step describes each scenario.

red-a.jpg 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 only contact information. Although the background information about Tracey Wong is also in the article’s footer, it’s outside the address element.

107figb.jpg

red-b.jpg The address element renders in italics by default. (The text “The Paper of Papers” is also italicized, but it is enclosed in the cite element, covered in “Indicating a Citation or Reference” in this chapter.)

To provide the author’s contact information

  1. If you want to provide author contact information for an article, place the cursor within that article (see the first instance in gray-a.jpg). 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 (see the second instance in gray-a.jpg).
  2. Type <address>.
  3. Type the author’s email address, a link to a page with contact information, and so on.
  4. Type </address>.
  • + Share This
  • 🔖 Save To Your Account

Discussions

comments powered by Disqus