JavaScript Element ariaDescription Property

Beginner
5 min read
Updated: Nov 2026
3 examples
Property

Definition

In JavaScript, the ariaDescription property of Element reflects the aria-description attribute — a string that describes or annotates the current element (MDN).

Read the notes below before you get or set this property. Prefer feature detection when support is limited.

Syntax

Use el.ariaDescription. Start with this line.

JavaScript
el.ariaDescription
CallWhat it does
el.ariaDescriptionPrimary signature.

Built into the browser. Read or assign el.ariaDescription — no import required.

Library declarations
JavaScript
el.ariaDescription

Parameters

ParameterDescription
Accessible nameRequired. Label / aria-label / labelledby
ariaDescriptionOptional. String annotation when no DOM description
Flat textRequired. No complex structure inside the string

Return Value

Return ValueDescription
*The current value of el.ariaDescription.

JavaScript Examples

Example 1 — Read ariaDescription

MDN-style close button: read the reflected annotation string.

JavaScript
const el = document.getElementById("close-button");
console.log(el.ariaDescription);
Try It Yourself

How It Works

  1. Select the element that has aria-description.
  2. Read ariaDescription. Returns the string annotation.
  3. Expect a longer phrase than the accessible name.
  4. Remember: prefer aria-describedby when text is in the DOM.

Example 2 — Get and Set (MDN)

Update the annotation string from script.

JavaScript
const el = document.getElementById("close-button");
console.log(el.ariaDescription);
el.ariaDescription = "A different description";
console.log(el.ariaDescription); // "A different description"
Try It Yourself

How It Works

  1. Log the start value. Matches the HTML attribute.
  2. Assign a new string. Keep it flat text.
  3. Read again. Confirms property and attribute updated.
  4. Leave the name alone. aria-label stays the short name.

Example 3 — Name vs Description

Pair a short label with a longer description string.

JavaScript
const el = document.getElementById("close-button");

el.ariaLabel = "Close";
el.ariaDescription = "Closes the dialog without saving changes";

console.log(el.ariaLabel);       // short name
console.log(el.ariaDescription); // longer context
Try It Yourself

How It Works

  1. Set the name with ariaLabel — short and clear.
  2. Set the description with ariaDescription — extra context.
  3. Do not put the whole story in the label (MDN).
  4. If help text is visible in the DOM, switch to aria-describedby.

Browser Support

Element.ariaDescription is Baseline Widely available (MDN: across browsers since March 2024). It is not Deprecated, Experimental, or Non-standard. The aria-description attribute remains in the ARIA 1.3 Editor’s Draft — prefer aria-describedby when help text is in the DOM.

✓ Baseline Widely available

Element.ariaDescription

Reflects aria-description as a string annotation. Prefer aria-describedby when descriptive text already exists in the DOM.

Baseline Widely available
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Android WebView Supported · Modern WebView
Full support
ariaDescription Baseline

Bottom line: Safe to read/write in modern browsers. Prefer aria-describedby for DOM help text; use ariaDescription when you need a string-only annotation.

Frequently Asked Questions

It reflects the aria-description attribute as a string that describes or annotates the current element — extra help beyond the short accessible name (MDN).
No. MDN marks Element.ariaDescription as Baseline Widely available (since March 2024). It is not Deprecated, Experimental, or Non-standard. The aria-description attribute itself is still in the ARIA 1.3 Editor's Draft — prefer aria-describedby when help text is in the DOM (MDN).
aria-label is a short accessible name. aria-description is a longer annotation that provides more context (MDN).
aria-description is a plain string on the element. aria-describedby / ariaDescribedByElements point to other elements whose text forms the description. Prefer describedby when the help text already exists in the DOM. If both are set, aria-describedby takes precedence (MDN).
A string. Reading and writing updates the reflected aria-description attribute.
When content is very long, has semantic structure, or needs navigation — use aria-details instead of a flat description string (MDN).

Next: ariaDetailsElements

Learn the Element property that links to structured related content.

ariaDetailsElements tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful