aria-multiline attribute indicates whether a
textbox accepts multiple lines of input or only a single line.
The default behavior of the Enter or Return key differs between single-line and multi-line text fields. When user focus is in a single-line
<input type="text">, an Enter or Return keystroke usually submits the form.
When user focus is in a multi-line
<textarea>, the keystroke inserts a line break. Only relevant for elements with the
textbox role set, the
aria-multiline attribute indicates to assistive technologies whether that text box accepts multiple lines of input or only a single line, setting expectations as to what type of data to enter and what those keystroke will do.
aria-multiline="true" is set, it means the textbox widget will accept line breaks within the input, similar to the HTML
<textarea>. Elements with a role of
textbox that do not have the attribute, or with the value set to
false, are simple text box.
The text box accepts multiple lines of input.
The text box only accepts a single line of input.
|Accessible Rich Internet Applications (WAI-ARIA) 1.1
The definition of 'ARIA: aria-multiline Attribute' in that specification.