Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<select name="colour"> <option value="red">Red</option> <option value="blue">Blue</option> </select> | AA dropdown with two options — name on select identifies the submission key; value on option is the submitted data | |
| 2<option value="au" selected>Australia</option> | BTag names must be lowercase — <SELECT> and </SELECT> should be <select> and </select> | |
| 3The value attribute on <option> is the data submitted — the visible text is just the label | CThe option is missing its value attribute — without value, the visible text is submitted instead of a clean data value | |
| 4<select> needs name and each <option> needs value for the dropdown to be useful in a form | DThe selected attribute marks this option as the default choice when the page loads | |
| 5<SELECT name="role"> <option value="a">Admin</option> </SELECT> | E<select name="size"> <option value="s">Small</option> <option value="l">Large</option> </select> | |
| 6<select name="size"> <option>Small</option> </select> | F<option value="m">Medium</option> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<option> — An HTML element placed inside <select> to provide one choice in a dropdown. Its value attribute is sent when the form submits; its text content is what the user sees.<select name="colour">
<option value="red">Red</option>
</select><select name="size">
<option value="s">Small</option>
</select><option value="red">Red</option><select name="role">
<option value="a">Admin</option>
</select><select name="lang">
<option value="en">English</option>
</select>