You are here: Re: How should I format an address? « HTML « IT news, forums, messages
Re: How should I format an address?

Posted by Chris Beall on 02/01/06 19:16

John Salerno wrote:

> I'd like to include a mailing address in the page I'm working on. I was
> wondering if I should use the <pre> tag, or if I should just use <p> and
> put <br> after each line of the address, so it will look like a mailing
> address across several lines?
>
> One thing against <pre> is that it puts it in fixed-width font, although
> I guess my styles can override that. But is there a preferred method to
> do something like this? <pre> looks like it can get out of control, so I
> don't want to abuse it. (Plus, it doesn't look all that nice in the
> markup, because you can't line it up with everything else!) :)

John,

You could consider using <address>, which is semantically what you seem
to have. See http://www.w3.org/TR/html401/struct/global.html#edef-ADDRESS.

You'll probably need to insert <br> as appropriate to get the usual
mail-address format.

Chris Beall

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация