HTML rt - how to use <rt> tag

The HTML <rt> tag is used to define an explanation or pronunciation of characters (for East Asian typography) in a <ruby> annotation.

The <rt> tag is used with the <ruby> and <rp> tags. The <ruby> tag contains the text that needs to be defined and the <rt> tag is used to define the pronunciation. The <rp> tag is optional and it contain text that will be displayed if the <ruby> tag cannot be rendered.

Attributes

The rt tag supports the global and event attributes.

Examples:

<ruby><rt><rp>(</rp>Random Chinese Characters<rp>)</rp></rt> </ruby>

Related HTML tags:

  • <> - used to define characters in East Asian language
  • <> - used to render extra information if ruby tag cannot be rendered