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>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13175

--- 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.3.1 : Wednesday, 7 January 2015 16:31:13 UTC