Web Site Primer

HTML · Web Design · Color Charts · & More!

HTML Markup: Address

Originally Published: 2005-02-21
Revised: 2006

There are times when you may need to provide text addresses. HTML provides us with markup for those occassions! This article will share about the address markup element.

This page will discuss a set of markup for use to share text-based adresses that will render, within most browsers, in italicized text for visual "draw".

Address Markup

<address>TEXT</address>
Paired tag; no shortcut.
Block Element.
address is short for Address Text
Use: Encloses, or encases, an address.

Example of markup:
<address>John Q. Public<br>
111111 Main Street<br> Any Town, <abbr title="United States of America">USA<abbr></address>

Appearance on the Web (will appear as dark green text):

John Q. Public
111111 Main Street
Any Town, USA

Notice, above, I slipped in line breaks tags to achieve traditional address-sharing formatting.

According to the HTML specs, address should encase the author's, or related, contact information for that particular Web document. Other addresses on the page, according to W3C's specifications, should not be encased in address tags.

Related Articles:



straight to the top