4 ms·
Maybe it's to increase the area where a click transfers the focus to the <input>? Skype Web puts a whole <form> in a <label>, I guess it is for that reason
by progval 10y ago
Maybe it's to increase the area where a click transfers the focus to the <input>?
Skype Web puts a whole <form> in a <label>, I guess it is for that reason
- realityking 10y agoIf you use the for attribute clicking on the label will focus the related input.
- mook 10y agoBut that means there may be an area between the label and the input element (depending on margins and so forth) which is not clickable. Having the label separate makes sense if it's all in a table-like structure, though.