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

ARIA: status role

· 52CE 我爱测

The `status` role defines a live region containing advisory information for the user that is not important enough to be an `alert`.

The status role defines a live region containing advisory information for the user that is not important enough to be an alert.

Description

A status is a type of live region providing advisory information that is not important enough to justify an alert, which would immediately interrupt the announcement of a user's current activity. It is often, but not necessarily, presented as a status bar.

Do not give focus to the status when its content updates. Live regions are meant to inform users of dynamic updates that have occurred in other areas of the current web page, but which do not necessitate interrupting the user's current activity with a change in context. If a situation requires that focus needs to be moved, then using a status, or other live region, are likely not appropriate.

Elements with the role status have an implicit aria-live value of polite and an implicit aria-atomic value of true.

Associated WAI-ARIA roles, states, and properties

  • aria-atomic

    • : Defines whether assistive technologies should present all, or only parts of, the changed region. Elements with the role status have an implicit aria-atomic value of true.
  • aria-live

    • : Defines when assistive technology should inform the user of updates to content. Elements with the role status have an implicit aria-live value of polite, meaning screen readers will announce changes inside the log when the user is idle.
  • aria-label or aria-labelledby

    • : Some screen readers announce the name of a status element before announcing its contents. If a name is visible, reference it using aria-labelledby. Including an aria-label provides a method for prefacing the visible content of a status element with text that is not displayed when a screen reader reads the content. Naming a status is not required so if nothing is appropriate both these attributes can be omitted.

Specifications

See also

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

资料来源与适用范围

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

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

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