<rt>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTML Ruby 文本 (<rt>) 元素包含字符的发音,字符在 ruby 注解中出现,它用于描述东亚字符的发音。这个元素始终在 <ruby> 元素中使用。

内容分类
允许的内容 短语内容
标签省略 如果 <rt> 元素紧紧跟随 <rt> 或者 <rp> 元素,或者父元素中没有更多内容了,结束标签可以省略。
允许的父元素 <ruby> 元素
允许的 ARIA 角色 任意
DOM 接口 HTMLElement

属性

该元素仅仅包含 全局属性

示例

html
<ruby><rt>Hàn</rt><rt></rt> </ruby>

规范

Specification
HTML
# the-rt-element

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
rt

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见