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 | |
|---|---|---|
| 1margin-bottom: 32px; | AAdds extra space under a group so it is clearly separated from the next group | |
| 2<fieldset><legend>Address</legend> ... </fieldset> | BKeeps related form fields together in one labelled group | |
| 3Proximity keeps related fields close together, such as first name and last name in the same block | C.name-group { gap: 4px; } | |
| 4Proximity leaves a larger space between unrelated groups so each group stands out | DThe label is closer to the wrong field, so users link it with the wrong input. Move each label close to its own field and away from others. | |
| 5A form where every field has the same 20px gap, including between Street and Suburb and between Address and Payment | EThe spacing is identical everywhere, so related and unrelated items look the same and no groups can be seen. Use small gaps inside a group and larger gaps between groups. | |
| 6A label placed 60px above its text box, right next to the field of the next question | F.form-group { margin-bottom: 40px; } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
proximity — A design principle: place related items close together and unrelated items further apart, so users see the groups clearly. Eg group name fields, then leave space before the next group.label { margin-bottom: 4px; }<fieldset>
<input name="first">
</fieldset>.name-row {
display: flex;
gap: 8px;
}.group + .group { margin-top: 32px; }<fieldset>
<legend>Contact details</legend>
</fieldset>