<rt>: The RT Element
Last updated: 2026-10-13
<rt>The RT Element
The pronunciation/annotation part inside ruby, right after the annotated text.
| Category | Text Content |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </rt> tag |
| Status | Standard |
📝 Syntax
<rt>reading</rt>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <rt> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: rt must live inside ruby; several annotated chars may share one rt.
❓ FAQ
QCan the font size of rt be adjusted?
AYes,
<rt> is a normal element. The browser default shrinks it (about 50%) and positions it over the base text; CSS font-size and color can override. Keep pinyin at 50%-70% so it does not squeeze the line spacing.QMust rt be inside ruby?
AYes —
<rt> only exists within <ruby>, providing the annotation for the adjacent base text. Standalone rt is invalid and gets no annotation layout at all.QHow do I show multiple readings for one character?
APut several
<rt> elements in the same <ruby>; the browser stacks them (multi-line annotation) — handy for polyphones labeled with two readings. For interactive reading switching, replacing rt content with JS is more practical.🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.