Skip navigation.

8.2 Provide labels for every form element, place correctly, explicitly associate

Examples

ALL elements must have labels. For dates indicate day month and year place labels for radio buttons and checkboxes to the after (to the right) of the element

Use of the label tag:

<label for="name">Name:</label>
<input type="text" id="name" ... >

<input type="radio" id="male" ...>
<label for="male">Male</label>

There is another form of usage for the label tag but the above is the most flexible.

Use of the title attribute:

<input type="text" id="name"
title="full name" ... >

Rather than have 'yes' /  'no' answers to choices, choose unambiguous statements e.g. Yes, I agree with the terms and conditions