[thelist] marking up an address
Phil Pickering
phildpickering at googlemail.com
Mon Aug 7 11:16:52 CDT 2006
On 07/08/06, Alastair Campbell <ac at alastc.com> wrote:
> In terms of pure HTML, there isn't much relevant, the <address> element
> is intended for the head of the doc, rather than the body.
Are you sure about this?
The W3C(http://www.w3.org/TR/html401/struct/global.html#h-7.5.6) seem
to suggest that the <address> element is for contact information that
usually appears at the top or bottom of a page. In fact, the <address>
element isn't even allowed in the <head> section.
> You could use a definition list with the name in the <dt>, the address
> in a <dd>, and phone and fax in a <dd> each.
I don't think you can class an address as a "definition"...
aesthetically, that might make a pleasant looking address format, but
semantically it will be way off..
I would use the following simple HTML:
<address>
John Doe Ltd<br />
123 Main Street<br />
Town, State<br />
Country<br />
Phone: 800 555 1234<br />
Fax: 800 555 4321
</address>
If you don't like the default italic formatting, you could use CSS to
style it differently.
Hope that helps,
Phil
More information about the thelist
mailing list