ARIA comment Role
This is part of the WAI-ARIA 1.3 draft. Support in browsers and screen readers is still incomplete, so test it with the assistive technology your users rely on.
The comment role marks a comment or reaction to some content, such as a reviewer's note on a document or a reply in a discussion thread.
Description
The comment role identifies a comment or annotation on content, such as a note in a collaborative document editor or a reply in a discussion thread. Comments can be nested to form threads, using aria-level, aria-posinset and aria-setsize where needed.
To tie a comment to the text it is about, mark the text (for example with <mark>) and point to the comment with aria-details.
Properties
- Category
- Document Structure
- HTML equivalent
- None
- Accessible name from
- author, contents
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
aria-level,aria-posinset,aria-setsize- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="comment">
Example
Browser Support
The following information will show you the current browser support for the comment ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





