WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: can <p> be used in place of <legend>?

for

From: Alastair Campbell
Date: Jul 20, 2006 3:20AM


> The main question is: Why would you want to replace LEGEND with a P?

Because browser CSS support for styling the legend sucks :(

http://www.quirksmode.org/bugreports/archives/2006/03/Positioning_the_le
gend_tag.html

http://marc.baffl.co.uk/bugs.php#legend

> The next versions of Jaws or older versions or other software might
> not support it and from a strictly semantic point of view it is not
> making any sense.

Where a design has needed some kind of positioning, background, or
anything more than a basic legend, I've taken to using a heading
instead.

Not ideal, but probably better than a <p>.

Kind regards,

-Alastair

--
Alastair Campbell | Director of User Experience

Nomensa Email Disclaimer:
http://www.nomensa.com/email-disclaimer.html