Click to See Complete Forum and Search --> : <address> element??


friggadier
09-25-2009, 05:33 PM
good evening everyone,

i was getting some markup validation errors when putting nesting a <address> element within a <p>.. so i just took out the <address> element completely..

i was using the <address> element to put a business's PHYSICAL street address in there.. i read that it could be used for this so i try to make my pages as web accessible as possible..

so to all the html gun slingers out there: do you use the <address> element to indicate street addresses too?? should i be getting an error for nesting an <address> within a <p>?? p level is block-level so i am confused.. thanks in advance.. :)

....

kiwibrit
09-25-2009, 06:27 PM
I don't use the address element since I don't see the point in it. I am unaware of any SEO benefit, and AFIK no accessibility technology uses it either.

opifex
09-25-2009, 08:29 PM
should i be getting an error for nesting an <address> within a <p>??


<address> is like <paragraph> and <blockquote>. It may not be nested inside a <paragraph>, but it may be used inside a <blockquote> or <form>.

friggadier
09-25-2009, 10:09 PM
right-O.. thanks..

....

site1media
09-27-2009, 12:53 PM
The proper way to use address is:


<address>
123 Main Street<br />
Anytown, CA 123456<br />
</address>

Like the paragraph block the browsers will automatically apply margin above and below this so there is no need to nest it within a paragraph. By default this will usually show up italicized in the browser.

It is an accessibility issue particularly in screen readers and my thought is that it is simple to use, so why not? Obviously, if you are not a fan of the default rendering by different browsers, simply use CSS to override the style.

kiwibrit
09-27-2009, 06:27 PM
Discussion on the address element here (http://www.accessifyforum.com/viewtopic.php?t=7496&highlight=address+element).