HTML <rt> Tag

The <rt> tag is used to add annotations at the top and bottom of the text, inserted in the <ruby> tag. The <ruby> tag defines furigana (also called yomigana or ruby) annotations, pronunciation guide for relatively obscure characters in Japanese or East Asian languages.

The <rt> tag is a new element in HTML5

The annotation placed in the <rp> tag contains a tip of pronunciation and translation of the basic text (hieroglyphs). Annotation is displayed in a small print above the hieroglyphs.

Syntax

The <rt> tag comes in pairs; the closing tag isn’t required if it comes the last.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <ruby><rt>Kan</rt><rt>ji</rt>
    </ruby>
  </body>
</html>

Result

Attributes

The <rt> tag supports the Global Attributes and the Event Attributes.

Browser support

5+ 5.5+ 38+ 5+ 15+