Is it proper if I place the tag after the input tag or before or does it matter?
<label for="l">Last Name:</label>
<input type="text" name="lname" id="l" />
<input type="text" name="fname" id="f" />
<label for="f">First Name:</label>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both are valid XHTML, however for good accessibility it’s probably best to have
<label>first so it’ll be described by a screen reader before reaching the input itself.