English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML Ruby text element ( <rt>) contains the pronunciation of characters, the characters appear in the ruby annotation, and it is used to describe the pronunciation of East Asian characters. This element is always used within the <ruby> element.
A ruby annotation:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <ruby> Chinese <rt>Hàn</rt> Character <rt>Zì</rt> </ruby> </body> </html>Test and see ‹/›
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.
The <rt> tag defines the interpretation or pronunciation of characters (Chinese phonetic or characters).
Associate the <rt> tag with <ruby> and <rp> used together with the following tags:
The <ruby> element consists of one or more characters that need to be explained/consisting of phonetic characters and a <rt> element that provides this information, including an optional <rp> element that defines the content to be displayed when the browser does not support the "ruby" element.
If the <rt> element is immediately followed by a <rt> or <rp> element, or there is no more content in the parent element, the closing tag can be omitted.
The <rt> tag is an HTML5 and new tags in it.
Support for <rt> tag Global attributes of HTML.
Support for <rt> tag HTML event attributes.