[html5] When labels point to more than one input
whatwg at gmail.com
Wed Apr 4 12:00:11 PDT 2012
On Wed, Apr 4, 2012 at 11:11 AM, Ian Hickson <ian at hixie.ch> wrote:
> Just don't bother using a label element for the "uberlabel".
How would you apply that advice to a situation like this, where all
the other elements on the page have clickable labels?
Date of Birth: [mm] / [dd] / [yy]
Is it ok to have the DOB as a <label> but pointing only to the month
input? That seems technically incorrect, since it really labels all
three. A <legend> in a <fieldset> seems technically correct, but then
you lose everything that <label> has to offer, which makes me almost
as sad as working with tables does.
> If it's semantically tabular, use a table. <th> is exactly the semantic
> you want here.
Never thought that a commitment to semantics would force me to use a table!
More information about the Help