ARIA:definition 角色
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) # definition |