HTML <address> tag

The <address> tag is used to display an address.

This tag has no attributes specific to it.

Standard attributes

class, dir, id, lang, style, title, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup

For more information on event attributes, check out our HTML event attributes reference page.

Example

<address> Nikola Tesla<br /> 123 Electricity Lane<br /> Long Island, NY 13795 </address>
Output:
Nikola Tesla 123 Electricity Lane Long Island, NY 13795

Tips & notes

Text that you set as an address using the <address> tag will automatically be italic in all the major browsers. This sets it apart from other text, however you may want to take further steps to set an address apart from the other text on a page. You can do things like make it bold, a different color, a bigger font size, or have a border around it.

There are several lines in an address block including name, address, city, and sometimes even more. While the <address> tag is useful for specifying text as an address, proper organization of the lines in an address block is still required for the address to appear in proper format.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation