HTML <rt> Tag

Beginner
6 min read
Updated: Nov 2026
4 examples
Live preview

Definition and Usage

The <rt> element holds the ruby text — pronunciation, transliteration, or a short translation for base text inside <ruby>. Browsers typically show it above or beside the annotated characters (for example Japanese furigana).

Always keep <rt> inside <ruby>. Optionally wrap it with <rp> parentheses for fallback UAs. Skip deprecated <rb> and legacy <rtc>.

Baseline · Widely available.

Not deprecated. Stable across browsers since about July 2015 (and earlier in practice).

Note.

Put base characters as text (or phrasing content) in <ruby>, then follow with <rt> for that reading. One rt can annotate a character or a whole word.

HTML Syntax

syntax.html
<ruby> base<rt>reading</rt></ruby>

Content is phrasing content. The end tag may be omitted if <rt> is immediately followed by <rp> or another <rt>, or when the parent ends.

Attributes

The <rt> element has no element-specific attributes — only global attributes.

AttributeDescriptionNotes
None specificNo dedicated attributes on <rt> itself.Must be a child of <ruby>.

Global Attributes

The <rt> tag also supports the Global Attributes in HTML.

Live Preview

Pick a reading style and see a real <rt> annotation update live.

<rt> holds the reading; keep it inside <ruby>.

Annotation

漢kan字ji

<rt>kan</rt> <rt>ji</rt>

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Basic Ruby Text

Annotate one base character with a short reading in <rt>.

HTML
<ruby>
  漢<rt>kan</rt>
</ruby>
Try It Yourself

How It Works

  1. Open <ruby> as the annotation wrapper.
  2. Write the base character (here 漢).
  3. Add <rt> with the reading text.
  4. Close both tags. Supporting browsers show the reading with the base.

Example 2 — Per-Character Readings

Give each character its own <rt> pair.

HTML
<ruby>
  漢<rt>Kan</rt>
  字<rt>ji</rt>
</ruby>
Try It Yourself

How It Works

  1. Write the first base, then its <rt>.
  2. Repeat for the next base + reading.
  3. No rb wrapper is needed in modern markup.
  4. Keep readings short so they fit above the characters.

Example 3 — rt with rp Fallback

Add parentheses for browsers that cannot show ruby layout.

HTML
<ruby>
  漢 <rp>(</rp><rt>kan</rt><rp>)</rp>
  字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
Try It Yourself

How It Works

  1. Keep <rt> as the reading container.
  2. Place <rp>(</rp> immediately before it.
  3. Place <rp>)</rp> immediately after it.
  4. Supporting browsers hide rp; others show 漢 (kan).

Example 4 — Whole-Word Annotation

One <rt> can annotate an entire word, not only a single character.

HTML
<ruby>
  明日
  <rp>(</rp><rt>Ashita</rt><rp>)</rp>
</ruby>
Try It Yourself

How It Works

  1. Put the full word as base text inside <ruby>.
  2. Add one <rt> with the reading for that word.
  3. Optional rp keeps fallback text clear.
  4. Choose per-character or whole-word based on how you want the annotation to read.

Edge Cases & Pitfalls

Most rt bugs are missing ruby, overly long readings, or mixing in deprecated tags.

parent

Only inside ruby

<rt> must be a child of <ruby>. Alone in a paragraph it is invalid for this purpose.

length

Keep readings short

Long glosses overflow the base characters. Prefer a short reading; put longer explanations outside the ruby.

fallback

Pair with rp when you care about fallbacks

Without rp, limited UAs may show the reading jammed against the base text with no parentheses.

legacy

Skip rb and rtc

Modern pattern is base text + rt (+ optional rp). rb is deprecated; rtc is legacy.

Browser Support

The <rt> element is core HTML for ruby annotations. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<rt>

Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera all support ruby text annotations with typical overline placement.

96% Global support (approx.)
Google Chrome All modern
Full support
Mozilla Firefox All modern
Full support
Apple Safari All modern
Full support
Microsoft Edge All modern
Full support
Opera All modern
Full support
Samsung Internet All modern
Full support
Internet Explorer 5+
Supported
<rt> Widely supported

Bottom line: Safe for production ruby readings. Keep rt inside ruby, and add rp when fallback parentheses matter.

Key Takeaways

  • Role: <rt> is the reading / gloss shown with ruby base text.
  • Parent: always nest rt inside <ruby>.
  • Fallback: wrap with <rp> when older agents matter.
  • Modern set: ruby + rt + optional rp — not rb / rtc.

One line: put the reading in <rt> inside <ruby>, and add <rp> for clear fallbacks.

Default CSS Settings

Typical user-agent styling for rt (exact layout varies by engine):

default.css
rt {
  display: ruby-text;
  font-size: 50%;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

You can restyle size and color with CSS. Keep contrast strong so small readings stay readable.

Frequently Asked Questions

The rt element holds the ruby text — usually a pronunciation, transliteration, or short translation shown with East Asian base characters inside a ruby element.
Yes. rt is only valid as a child of ruby. Outside ruby it has no useful meaning.
Recommended. rp provides fallback parentheses for browsers that do not support ruby layout, so readings still look like 漢 (kan).
In HTML, yes when rt is immediately followed by rp or another rt, or when the parent ends. Beginners can write both tags for clarity.
No. It is Baseline and widely available. Deprecated or legacy ruby pieces are rb and rtc — not rt.
Phrasing content — typically short reading text such as kana, romaji, or a brief gloss. Keep it short so the annotation stays readable.

Next: rtc

Learn the legacy HTML rtc element and why modern ruby skips it.

rtc tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful