Skip to content

Glossary: Next.js Beyond the Basics

aria-invalid and aria-describedby

Also written: aria-invalid, aria-describedby

HTML attributes that tie an error message to its input for screen readers. aria-invalid marks the field as wrong, and aria-describedby points to the error text.

Where the book teaches it

Related terms

useActionState