ARIA:定义角色
definition
ARIA 角色指示元素是术语或概念的定义。
描述
definition
ARIA 角色可以包含在作为术语或概念定义的元素上,类似于本机 <dfn>
元素。要将定义与正在定义的term
关联,并提供可访问的名称,请使用role="term"
引用正在定义的术语,并使用 aria-labelledby
。
html
<p>
<span role="term">Mansplaining</span>,
<span role="definition">
a portmanteau of "man" and "explain", is the patronizing act of explaining
without being asked to do so, to someone already learned on the topic, often
after someone has already explained it
</span>.
</p>
html
<p>
<dfn>Mansplaining</dfn>, a portmanteau of "man" and "explain", is the
patronizing act of explaining without being asked to do so, to someone already
learned on the topic, often after someone has already explained it.
</p>
规范
规范 |
---|
可访问的富互联网应用程序 (WAI-ARIA) # 定义 |