HTML aria-multiline ARIA Attribute
The aria-multiline attribute tells assistive technology whether a custom text box accepts several lines of text or just one.
Description
The aria-multiline attribute indicates whether an element with the textbox role accepts multiple lines of input. With true, pressing Enter adds a new line; with false, it usually submits the form or does nothing. Screen readers announce multi-line fields differently, and their reading keys behave accordingly.
It is needed for custom text fields, typically built with contenteditable. Native elements expose the right value automatically: <textarea> is multi-line and a text <input> is single-line.
Properties
Syntax
<element role="textbox" aria-multiline="true | false">
Values
- trueThe text box accepts several lines.
- falseThe default: the text box accepts a single line.
Example
Browser Support
The following information will show you the current browser support for the aria-multiline ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





