English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML 参考手册

HTML 标签大全

HTML: <rt> Tag

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

在线示例

一个 ruby 注释:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>基础教程(oldtoolbag.com)</title> 
</head>
<body>
<ruby>
  汉 <rt>Hàn</rt>
  字 <rt>Zì</rt>
</ruby>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

IE 9+Firefox, Opera, Chrome and Safari support the <rt> tag.

Note:IE 8 or earlier versions of IE browsers do not support the <rt> tag.

Tag definition and usage instructions

The <rt> tag defines the explanation or pronunciation of characters (Chinese phonetic or characters).

combine the <rt> tag with <ruby> and <rp> used together with tags:

The <ruby> element consists of one or more characters that need to be explained/characters of pronunciation and a <rt> element that provides this information, including an optional <rp> element, which defines the content to be displayed when the browser does not support the "ruby" element.

If the <rt> element is immediately followed by another <rt> or <rp> element, or there is no more content in the parent element, the closing tag can be omitted.

HTML 4.01 with HTML5differences

The <rt> tag is an HTML5 new tags.

Global Attributes

Support for <rt> Tag Global Attributes of HTML.

Event Attributes

Support for <rt> Tag HTML Event Attributes.