WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Long form legends

for

From: Thomas Jedenfelt
Date: Jun 10, 2005 2:11PM


It seems to me that:

1) LEGEND is _required_ as the first child of FIELDSET.
[HTML 4]

2) LEGEND _should_ (but not required) be the first child of FIELDSET.
[XHTML 1]

Is my interpretation correct?

See Masayasu Ishikawa's replies in the thread:
'FIELDSET, LEGEND, HTML, & XHTML',
in W3C Mailing list ' <EMAIL REMOVED> '.
(http://lists.w3.org/Archives/Public/www-html/2002Feb/thread.html#25)

(Masayasu Ishikawa is an employee of W3C, and works with HTML / XHTML.)

Regards,
Thomas Jedenfelt

>
> Steven Faulkner wrote:
>
> Does this mean that the W3C validator is incorrect when it says a xhtml
> 1.0 transitional document containing a fieldset element without a legend
> element is valid?
>
> with regards
> Steven Faulkner
>
>
> Jukka "Yucca" Korpela wrote:
>
> > Contrary to what the cited document claims,
> > the <legend> element is _not_ optional. It is required by HTML
> > syntax, see
> > http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.10
> > (Even the spec is misleading: it says that "The LEGEND element allows
> > authors to assign a caption to a FIELDSET", but by the formal syntax,
> > <legend> is required.)


--

Surf the Web in a faster, safer and easier way:
Download Opera 8 at http://www.opera.com

Powered by Outblaze