Favorites

ARIA textbox Role

textbox
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The textbox role marks a custom field where the user can type free-form text. The input and textarea elements have this role.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The textbox role identifies an input that allows free-form text. It can be single-line or, with aria-multiline="true", multi-line. Native <input> elements of text-like types, and <textarea>, have this role.

The role is mainly needed for custom editors built with contenteditable, such as rich-text editors. Those must still have a label, report states such as aria-required and aria-invalid, and handle features like copy and paste correctly. A contenteditable element doesn't take part in form submission, so its content has to be copied into the form with script.

For plain text, the native elements are far simpler and more robust.

Use the native HTML <input>, <textarea> element where you can: it already has the textbox role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<input>, <textarea>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Syntax

<element role="textbox">

Example

<label for="nm">Name</label>
<input id="nm" type="text">

<div id="bio-l">Bio</div>
<div role="textbox" contenteditable="true" aria-multiline="true" aria-labelledby="bio-l"
style="border:1px solid #888;min-height:3em;padding:4px"></div>

Browser Support

The following information will show you the current browser support for the textbox ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee