Forms — Quiz

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
How do you link a <label> to its input?
A Put the input's text inside the label's id
B Give the input an id and the label a matching for
C They link automatically by position
D Use a link attribute
Question 2
Which input type shows dotted-out, hidden text?
A text
B hidden
C password
D secret
Question 3
Which attribute makes a field mandatory?
A mandatory
B required
C must
D validate
Question 4
Which element gives a multi-line text box?
A <input type="text">
B <textarea>
C <select>
D <multiline>
Question 5
Is browser validation enough to keep your data safe?
A Yes, it blocks all bad input
B No — always validate on the server as well
C Only if you use required
D Only on mobile