-
Sub-task
-
Resolution: Fixed
-
Major
-
2.1.1
-
MOODLE_21_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MDL-30815-master -
Easy
-
Each input element needs to be explicitly tied to a form label. The correct code looks like the following.
<input id="choice_1" type="radio" name="answer" value="red" />
|
<label for="choice_1">Red</label>
|
|
<input id="choice_2" type="radio" name="answer" value="blue" />
|
<label for="choice_2">Blue</label>
|
|
<input id="choice_3" type="radio" name="answer" value="green" />
|
<label for="choice_3">Green</label>
|
The key is to have each input element directly attached to a label through a common "id" and "for" attribute.