aria-multiline attribute | ariaMultiline property
Indicates whether a text box accepts multiple lines of input or only a single line.
![]() |
Syntax
<element aria-multiline="true|false" ... />
Property values
Type: DOMString
One of the following values:
| Value | Condition |
|---|---|
|
This is a multi-line text box. |
|
This is a single line text box. |
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
| Used in Roles |
|
|---|
The default behavior of the Enter key depends on whether you type it into a single-line <input type=text> element (submit the form) or a multi-line <textarea> element (insert a new line). You can apply these same default behaviors to the textbox role by using the aria-multiline attribute.
See also
Show:
