[html5] When labels point to more than one input

Ian Hickson ian at hixie.ch
Wed Apr 4 12:04:47 PDT 2012


On Wed, 4 Apr 2012, brenton strine wrote:
>
> 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?

Yeah, that'd be fine.


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

If it's tabular data, it's a <table>. Just like if it's a tabular design, 
it's a CSS display:table.

The problem isn't with tables per se, it's with using <table> for tabular 
designs that aren't tabular data.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the Help mailing list