HTML form labels: W3C WAI implementation guidance. This chapter does not cover validation, error recovery or legal compliance.
Question 3 / 4
In some contexts a label can be visually hidden, but it must remain available to assistive technology. Do not use display: none or visibility: hidden for that purpose: those styles hide the content from assistive technology too. Most users prefer or need visible labels. [2]
Try the label, then the field
An explicit association
The visible label names the field before anything is typed. The placeholder is an example, not the field name. Keyboard focus and browser validation are real, not a pictured mockup.
This is an original summary, not a translation of the full tutorial. The Korean and English pages are translations of this GenFAQ summary. No W3C review, affiliation or certification is claimed.