Lesson 10 of 30
WCAG tells you an error message needs to be programmatically associated with its field. It says nothing about when to show that error, or whether the label should still be there once the field is full — that judgment is this lesson.
13 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A dense form uses floating labels throughout. What's the real tradeoff being made, once every field has a value?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
A form is the part of a product where a user does the most work and gets the least patience for friction. Most form UX problems aren't about accessibility compliance (covered elsewhere in this track) — they're judgment calls about timing and layout that WCAG doesn't specify.
Validation timing is the biggest one. Three options, not equally good:
@ punishes the user for a state that's still in progress, not actually wrong.The practical rule: validate on blur for most fields, and re-validate immediately on every keystroke after the first error has been shown for that field — so a corrected field clears its error the moment it's actually fixed, not after another full blur cycle.
A floating label starts centered inside the input as placeholder-like text, then animates up into a small caption above the field once the user types. It looks clean empty — but once a field has a value, the shrunk label is competing for the same visual space the entered text used to have room in, and on a dense multi-field form that shrinking motion happening across several fields at once reads as noisy rather than elegant. A persistent label above the field, present before and after typing, costs a little vertical space but never has this problem.
Layout research on real forms is consistent on one point: single-column layout completes faster and with fewer errors than multi-column, because a user's eye follows one straight vertical path instead of deciding, at every field, whether the next one is below or to the right. Multi-column layout is occasionally justified for genuinely paired fields (city / state / zip) where the visual grouping itself communicates the relationship — but it's the exception, not a space-saving default.
"How would you improve this signup form" is one of the most common practical UX interview prompts, and validation timing is the single most reliable signal in the answer — a candidate who says "validate on blur, not on every keystroke" is demonstrating real hands-on form experience in a way that's hard to fake from theory alone.