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) # 定義 |