ARIA form Role
The form role marks a region that contains form controls. The form element becomes a form landmark only when it has an accessible name.
Description
The form role identifies a region containing a collection of items and objects that, as a whole, combine to create a form. It is a landmark, so users can jump to it directly. Landmarks let screen reader users list the main areas of a page and jump straight to one of them.
The <form> element only exposes the form role when it has an accessible name, given with aria-label, aria-labelledby or title. Unnamed forms are not listed as landmarks. Name the forms that users are likely to want to jump to, such as a contact form or a sign-up form, and leave small forms unnamed to avoid cluttering the list.
Adding role="form" to a <div> doesn't add form behavior, such as submitting on Enter, so use a real <form> element. For a search form, use the search role or the <search> element instead.
Use the native HTML <form> element where you can: it already has the form role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Landmark
- HTML equivalent
<form>- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="form">
Example
Browser Support
The following information will show you the current browser support for the form ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





