Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Accessibility
  3. ARIA
  4. ARIA reference
  5. Roles
  6. Structural

ARIA: document structural roles

ARIA document-structure roles are used to provide a structural description for a section of content.

Structural ARIA roles were originally created as a bridge to inform assistive technologies of HTML5 elements that were not yet fully supported in browsers. Some roles, likepresentation,toolbar andtooltip, provide information on the document structure to assistive technologies in cases where equivalent native HTML elements don't exist. Other roles, including those listed in the table below, are not needed, as there are semantic HTML elements with the same meanings. In many cases, these equivalent HTML elements have always been supported.

Warning:These structural roles all have semantic HTML equivalents. They are included here for completeness of documentation. Preferably, they should not be used by web authors. Opt for HTML semantic elements instead.

Some structural roles, likesuggestion, don't have HTML equivalents, and therefore have separate documentation. Some structural roles with HTML equivalents, likeheading, have ARIA-attribute requirements. They are listed below with links to their individual role documentation.

Most of the following roles were never needed but were added to ARIA for completeness. We've included them here for completeness as well.

Structural roles with HTML equivalents

The structure roles with HTML equivalents are listed below:

ARIA role & descriptionHTML Equivalent
associationlist
Contains onlyassociationlistitemkey children and their siblingassociationlistitemvalue.
<dl>
associationlistitemkey
Must be contained in anassociationlist.
<dt>
associationlistitemvalue
Always a sibling following anassociationlistitemkey.
<dd>
blockquote
A section of content that is quoted from another source.
<blockquote>
caption
Visible content that names, and may also describe, afigure,table,grid, ortreegrid.
Only found in those 4 roles. A caption'sid is generally referenced by afigure,grid,table, ortreegrid'saria-labelledby attribute.
Prohibited attributes:aria-label andaria-labelledby.
<caption>
<figcaption>
code
A section representing a fragment of computer code.
Prohibited attributes:aria-label andaria-labelledby.
<code>
deletion
Content that is marked as removed or suggested for removal.
Prohibited attributes:aria-label andaria-labelledby.
<del>
emphasis
Used to stress or emphasize content, but not to suggest importance.
Prohibited attributes:aria-label andaria-labelledby.
<em>
figure
Container for a graphical document, images, code snippets, or example text.
<figure>
heading
A heading for a section of the page.
Thearia-level attribute is required to indicate the nesting level.
See theheading role for more information.
h1,h2,h3,h4,h5, andh6
image
Container for a collection of elements that form an image. Synonym forimg role.
<img>
img
Container for a collection of elements that form an image.
Accessible name is required.
See theimg role for more information.
<img>
insertion
Content that is marked as added or content that is being suggested for addition.
Prohibited attributes:aria-label andaria-labelledby.
<ins>
list
A section containinglistitem elements.
Seelist role for more information
<ol>
<ul>
listitem
A single item in alist ordirectory.
Must be contained in alist (like<li>).
Seelistitem role for more information.
<li>
mark
Marked or highlighted for reference or notation purposes.
Seemark role for more information.
<mark>
meter
A scalar measurement within a known range, or a fractional value.
Accessible name required.aria-valuenow required.
Seemeter role for more information.
<meter>
paragraph
A paragraph of content.
Prohibited attributes:aria-label andaria-labelledby.
<p>
strong
Important, serious, or urgent content.
Prohibited attributes:aria-label andaria-labelledby.
<strong>
subscript
One or more subscripted characters.
Only use if absence of role would change the content's meaning.
Prohibited attributes:aria-label andaria-labelledby.
<sub>
superscript
One or more superscripted characters.
Only use if absence of role would change the content's meaning.
Prohibited attributes:aria-label andaria-labelledby.
<sup>
term
Word or phrase with an optional corresponding definition.
Prohibited attributes:aria-label andaria-labelledby.
Seeterm role for more information.
<dfn>
time
A valid date or time string format list a specific point in time.
Prohibited attributes:aria-label andaria-labelledby.
<time>

Note:Thearia-label andaria-labelledby attributes are prohibited oncode,caption,deletion,emphasis,generic,insertion,mark,paragraph,presentation,none,strong,subscript,superscript,suggestion,term, andtime, and should only be used on interactive content.

Specifications

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# document_structure_roles

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp