Re: Form "field" Elements

2014-06-10 21:12, Boris Zbarsky wrote:
>
> Why not:
>
>   <form>
>     <label>Name <input/></label>
>   </form>
>

On the accessility side of the matter, not all clients support that. 
This is admittedly a diminishing problem, if not entirely irrelevant.

On the logical side, a control element is logically not part of its label.

On the practical side, this causes no line breaks. So you would need to 
use other markup and/or CSS to create line breaks.

I think good markup for a form creates a rendering that is acceptable, 
though perhaps not perfect, even when CSS disabled or irrelevant.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Received on Tuesday, 10 June 2014 19:01:07 UTC