HTML aria-placeholder ARIA Attribute
The aria-placeholder attribute gives a short hint shown in a custom text box while it is empty, such as an example value.
Description
The aria-placeholder attribute defines a short hint for a custom text box, such as a sample value or the expected format. It is the ARIA version of the HTML placeholder attribute and is meant for elements with the textbox or searchbox role built with contenteditable.
You must also show the hint visibly while the field is empty and hide it once the user types, usually with CSS such as :empty::before. Native <input> and <textarea> elements should use placeholder instead.
A placeholder is not a label. It disappears when the user starts typing and often has low contrast, so always give the field a real label too.
Properties
Syntax
<element role="textbox" aria-placeholder="text">
Values
- textA short hint shown while the text box is empty.
Example
Browser Support
The following information will show you the current browser support for the aria-placeholder ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





