Form Label
Etichetta del modulo
Una Form Label dice cosa serve a un campo di inserimento. Il codice collega l'etichetta al suo controllo corrispondente.
Un esempio vero
Un campo di cassa mantiene “Nome del titolare della carta” sopra il riquadro. Un suggerimento sotto spiega come scriverlo.
Parti principali
- 01Etichetta persistente
- 02Input control
- 03Hint or format
- 04Validation message
Usalo quando
Dare a ogni input un'etichetta visibile, anche quando ha un segnaposto o un'icona.
Non usarlo quando
Non usare un segnaposto come unica etichetta. Il testo vicino da solo non fornisce un nome accessibile.
Nome usato nel codice
<label for> / aria-labelledby Prima di spedire
Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages.
Outcome: Complete the task with Etichetta del modulo (Form Label). User context: Un campo di cassa mantiene “Nome del titolare della carta” sopra il riquadro. Un suggerimento sotto spiega come scriverlo. Recommended pattern: Etichetta del modulo (Form Label). Why it fits: Dare a ogni input un'etichetta visibile, anche quando ha un segnaposto o un'icona. Do not use it when: Non usare un segnaposto come unica etichetta. Il testo vicino da solo non fornisce un nome accessibile. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): Lo standard copre solo l'ambito elencato. Non sceglie lo stile visivo, la decisione sul prodotto o l'esempio di vocabolario. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Etichetta del modulo (Form Label) is used now. Definition: Una Form Label dice cosa serve a un campo di inserimento. Il codice collega l'etichetta al suo controllo corrispondente. Release checks: Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.