Validity state
noun
say it: “vuh-LID-ih-tee STAYT” /vəˈlɪdɪti steɪt/
The browser's report on one form field: a set of true-or-false answers saying whether its value is valid and, if not, why, such as missing or too short.
What is Validity state?
Validity state — The set of results describing why a form control's value is valid or invalid.
In a sentence
- “I checked the validity state to tell a missing name apart from one that was too short.”
- “The email box's validity said typeMismatch was true, so I showed: That doesn't look like an email address yet.”
Level: Apprentice · More HTML terms at this level
Updated