What is the <rt> element in HTML?

In HTML, the <rt> element is used to specify the pronunciation or translation of the ruby annotation.

The <ruby> element consists of one or more characters that need an explanation that is provided by the <rt> element.

Syntax

<ruby>
symbol<rp>(</rp><rt>annotation</rt><rp>)</rp>
</ruby>

The <rt> element must always be contained within a <ruby> element.

Code

The following code demonstrates the usage of the <rt> element in HTML. The content that we want to display as ruby annotations is written within the opening and closing tags (<rt> and </rt>).

  • HTML

Free Resources