For visually impaired users using a screen reader does it matter if the label for an input control be placed before or after the input?
For example, is there a difference (as far as the screen reader is concerned) between:
<label for="name">Name:</label>
<input id="name" />
and
<input id="name" />
<label for="name">Name:</label>
I am a web developer who typically does the first method, however some new effects require the label to be after the input. Not sure of how screen readers work - would they read the label for the input regardless of the label position when it got to the input? Would it explain there is a form element here, THEN read the label?
When dealing with alternate displays, does it matter if the label for an input control is placed before or after the input, and if so, which should it be?