Favorites

HTML aria-multiline ARIA Attribute

aria-multiline
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-multiline attribute tells assistive technology whether a custom text box accepts several lines of text or just one.

☕
Enjoying this site?

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

Buy us a coffee

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

Type
Widget
Value
true/false
Default
false
Used with
searchbox, textbox

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

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

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.

This ARIA attribute 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