<rt>


HTML <rt> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head>
<body>

<ruby>
  漢 <rp>(</rp><rt>Han</rt><rp>)</rp>
  字 <rp>(</rp><rt>zi</rt><rp>)</rp>
</ruby>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

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

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

Use the <rt> tag with the <ruby> and <rp> tags:
The <ruby> element consists of one or more characters that need to be interpreted/pronounced and a character that provides that information The <rt> element also includes the optional <rp> element, which defines the content displayed when the browser does not support the "ruby" element.


Differences between HTML 4.01 and HTML5

The<rt> tag is a new tag in HTML5.


Global attributes

<rt> tag supports HTML global attributes.


Event attributes

<rt> tag supports HTML event attributes.