WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: form accessibility

for

From: Joe Chidzik
Date: Aug 11, 2016 7:19AM


> If you use the "FOR" attribute, you can put the label wherever you want. It
> can be at the end of the DOM who cares.

Well, label positioning is still important visuallysemantically - so please don't put it at the end of the DOM.

Yes, using forid means the label is explicitly associated with the input field. Sighted users still benefit from having it visually adjacent though, and screenreader users not in forms mode, just arrowing down the page, will also benefit from having the label positioned adjacent in the DOM too as they will hear the label > input field in the correct order.


Joe