大网数据广告活动
Web 标准与前端开发

ARIA: note role

· 52CE 我爱测

A `note` role suggests a section whose content is parenthetic or ancillary to the main content.

A note role suggests a section whose content is parenthetic or ancillary to the main content.

Description

The note role can be added to parenthetic or ancillary content if no other native element or other role fits the purpose.

Associated WAI-ARIA roles, states, and properties

  • aria-label or aria-labelledby (optional)
    • : Naming a note is optional, but can help screen reader users understand its context and purpose. The name can be provided using aria-labelledby if a visible label is present, otherwise with aria-label.

Examples

<h1>Madam C. J. Walker</h1>
<p>
  Madam C.J. Walker was an African American entrepreneur, philanthropist, and
  political and social activist.
</p>
<h2>Early Life</h2>
…
<h2>Career</h2>
…
<p role="note" class="highlight-box">
  At the height of the depression, Madam C. J. Walker trained 20,000 women to
  sell hair pomade door-to-door
</p>
<h2>Activism and Philanthropy</h2>
…

In the above Wikipedia style entry for Madam C.J. Walker, the highlight-box with role note could have been a blockquote if it contained a quote or figcaption in a figure if there was an associated image. In this case, as neither of those made sense, the note role was added to add semantics to the parenthetic content.

Specifications

See also

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。