|
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
[Back to original message]
|