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 18:05:54 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QesxW-0001Rt-N5@jessica.w3.org>

--- Comment #4 from Marat Tanalin <mtanalin@yandex.ru> 2011-07-07 18:05:54 UTC ---
(In reply to comment #3)
> 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).

Do you mean that we are free to arbitrarily use these elements in place of each
other? For example, FIGCAPTION instead of TH, or TH instead of H1, or some
another similar semantic soup? Really?

> 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>.

Main reason why legend is more suitable inside forms is that legend is
semantically linked to specific fieldset/form element. It is not header of
whole page, or nearest article parent element, it is header of exactly specific
form or fieldset.

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 18:05:55 UTC

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