W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[Bug 13175] Allow LEGEND to be LEGEND of FORM itself, without need for wrapping FIELDSET

From: <bugzilla@jessica.w3.org>
Date: Thu, 07 Jul 2011 17:50:53 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qesiz-0000Xe-No@jessica.w3.org>

--- Comment #3 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-07-07 17:50:53 UTC ---
Using <h1> is a perfectly elegant and correct solution.  "legend" is just
another word for "h1" (along with "figcaption", "summary", "title", "th", and a
few other heading elements).

The only reason it exists is because (a) it has special rendering behavior in
conjunction with <fieldset>, and (b) it was defined by an earlier version of
HTML and exists in a lot of pages.

Neither of these reasons apply to the suggestion of using <legend> outside of
<fieldset>.  If you want a heading for your form, use <h1>.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 7 July 2011 17:50:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:55 UTC