Forum Moderators: open
Line 1: Office Name, Name of building ¦ University Name ¦ P. O. Box #
Line 2: City, State ZIP
Line 3: Phone: ****-xxx-xxxx ¦ Fax: xxx-xxx-xxxx
Should I not put the phone and fax inside of <address>
and, is it acceptable to put <br /> (i'm using XHTML) tags inside of <address>
Thanks :)
That seems to include fax and phone, I'd say. And <br /> is allowed within, I'm almost 100% sure. When in doubt, try the validator.
However, note that <address> was "supposed" to be contact information for the document, and not to be used addresses in general. Of course, almost no one ever understood that. There's some discussion on the W3C lists about this relative to the next version of XHTML.
Although symantically both are not really true reflections there are no better ways to achieve what you want adn these are both standards compliant.
Some people also format it as a list
<address>
<ul>
<li>Address Line 1</li>
<li>Address line 2</li>
</ul>
</address>
But I think lists are overused anyway so shy away from that method, besides I normaly put addresses on one line myself.
There has been an amount of discussion lately about a new tag to define lines that would make more sense semantically but thats way in the future yet.