Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
5
12
38
5
18
4.2
Other

The HTML element is used to provide fall-back parentheses for browsers that do not support display of ruby annotations using the element. One element should enclose each of the opening and closing parentheses that wrap the rt element that contains the annotation's text.

5
12
38
5
18
4.2

The HTML element specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The element must always be contained within a ruby element.

5
12
38
5
18
4.2
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
  • Nested `<rt>` elements do not render correctly due to missing `display: ruby-text` styling. See bug 347597919.
Notes 1 item(s)
Implementation note
  • Nested `<rt>` elements do not render correctly due to missing `display: ruby-text` styling. See bug 265316.
Notes 1 item(s)
Implementation note
  • Nested `<rt>` elements do not render correctly due to missing `display: ruby-text` styling. See bug 347597919.
Notes 1 item(s)
Implementation note
  • Nested `<rt>` elements do not render correctly due to missing `display: ruby-text` styling. See bug 265316.

Syntax

HTML
<ruby><rt>Kanji</rt></ruby>
<ruby>Tokyo</ruby>

Live demo

character. furigana

Ruby / rt element in character to furigana shake.

PreviewFullscreen

Rb and rp. Usage

non-supportbrowser for. providepattern. with rp

PreviewFullscreen

language. pronouncenotation

Ruby English or Chinese. pronouncenotation to usage.

PreviewFullscreen

Use cases

  • Using <ruby>

    The <ruby> HTML element represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Verify how this element is announced by screen readers.