ARIA States & Properties

aria-placeholder

Build a form with the HTML form generator

Provides a short hint for an empty custom text entry field, not a name or persistent instruction. Prefer native placeholder on input or textarea with a separate label. The hint does not implement visual placeholder behavior. Value type: string. Accepted values: short input hint. Default or omitted behavior: none. Applicable context: textbox, searchbox; example uses native equivalent. The example intentionally uses a native HTML equivalent. 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-placeholder="value" (replace value with a valid value; example uses preferred alternative)

Parameters & Attributes

NameTypeDescription
aria-placeholderstringAccepted values: short input hint. Default or omitted behavior: none. Context: textbox, searchbox; example uses native equivalent. Requiredness depends on the role.

Working Example

Example Snippethtml
<label for="code">Code</label><input id="code" placeholder="ABC123">
HTML Reference