Skip to content

<rt> - The Ruby Text Element

Inline HTML5

The ruby text element specifies the ruby text component of a ruby annotation, providing pronunciation, translation, or transliteration information for East Asian typography.

Result
<ruby>
base text <rt>annotation text</rt>
</ruby>

The <rt> element must be used inside a <ruby> element and contains the annotation for the base text.

Result
Result
Result
Result
Result
Result

You can have multiple ruby text elements for different parts:

Result

Customize ruby text appearance:

Result
Result
Result
Result
Result

Control ruby text position with CSS:

Result

Using <rp> for browsers without ruby support:

Result

Screen readers may announce both base text and ruby text, which can help with pronunciation learning.

Specify language for proper pronunciation:

<p lang="ja">
<ruby><rt></rt><rt>ほん</rt></ruby>
</p>

Make annotations clear and concise:

<ruby><rt>kan</rt></ruby>
BrowserVersionNotes
Chrome5+Full support
Firefox38+Full support
Safari5+Full support
Edge79+Full support
IE5.5+Partial support

The <rt> element is well-supported in modern browsers.