Johan Douma wrote:
I've always used label arount input fields <label>text: <input
type="text" /></label> without the for="" attribute.
I've never had problems with it, and I don't think I've ever seen any
recommendation against it.
There's a discussion about some problems with that pattern at:
http://www.w3.org/TR/WCAG20-TECHS/H44.html
and
http://green-beast.com/blog/?p=254
I'd suggest just using:
<div class="field"><label for="field-id">Label text:</label> <input
id="field-id" name="field-key" type="text"></div>
(substituting whatever you feel most appropriate for DIV)
--
Benjamin Hawkes-Lewis
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************