ARIA States & Properties
aria-multiline
Describes whether a textbox accepts more than one line. It does not enable line breaks itself. Prefer textarea for multiline editing; implement appropriate Enter behavior in custom controls. Value type: boolean. Accepted values: true, false. Default or omitted behavior: false. Applicable context: textbox. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-multiline="true"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-multiline | boolean | Accepted values: true, false. Default or omitted behavior: false. Context: textbox. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="textbox" aria-label="Notes" aria-multiline="true" contenteditable="true"></div>