
Reblogged by collinsworth@hachyderm.io ("Josh Collinsworth"):
SaraSoueidan@front-end.social ("Sara Soueidan") wrote:
Periodic reminder that "wrapping the around the is fine, and is sufficient for conformance on its own, however adding explicit association with` for` and `id` is still necessary in practice."
Details: https://www.tpgi.com/should-form-labels-be-wrapped-or-separate/
—
"Both Dragon Naturally Speaking for Windows, and Voice Control for macOS and iOS, don’t recognize implicit association, so the Click email address command wouldn’t work." @siblingpastry
Attachments:
- Three code snippets: the first one showing an implicit association between an and a with the input nested inside the label. The second one showing an explicit association with the and separated but associated with the for and id attributes. The third snippet shows an nested inside a and associated with it using for and id attributes. (remote)