CodeZettaInterview Hub

HTML · Forms · Fresh / Intern · Concept

Why should every input have a <label>?

Short Interview Answer

Labels give accessible names and enlarge click/tap targets.

Detailed Explanation

Associate with for/id or wrap the control. Placeholder is not a label. Visible labels survive autofill and translation better.

Did you know this answer?