Validation message.
Explains a specific problem with an entered value.
See it in context
What it is
A useful field error identifies what needs correction and how to fix it. It appears near the relevant control and remains connected to the value the person entered.
When to use it
Name the problem, preserve the entry, and associate the message with the invalid field.
Know the difference
A success notification reports completion; a validation message helps correct input.
Across platforms
Web
Use a native button for an action and an anchor for navigation. Preserve keyboard activation and a visible focus indicator.
iOS · iPadOS · Android
Provide a comfortable touch target, use familiar system symbols when appropriate, and show a clear pressed or selected state.
macOS · Windows · Linux
Keep pointer, keyboard, and focus behavior consistent. Common commands can additionally expose a menu item or keyboard shortcut.
Go to the source
Primary documentation for the pattern and its platform conventions.