The <rtc> (ruby text container) element once grouped one annotation range inside <ruby> — often a second, semantic layer next to pronunciation in <rt> (commonly with <rb> base units).
Learn it only to recognize legacy markup. For new work, put base text and <rt> directly in <ruby>, add optional <rp> fallbacks, or nest <ruby> for two annotation sides.
Deprecated.
MDN: avoid <rtc> in new projects. The HTML Standard treats it as obsolete for authors.
Still parsed in many browsers.
Legacy recognition is not permission to ship new <rtc>. Double-sided layout with rtc is inconsistent across engines.
Syntax
HTML Syntax
syntax.html
<ruby>…<rtc>annotation</rtc></ruby>
Parent must be <ruby>. Content is phrasing text or <rt> (and optional <rp>). The end tag may be omitted when followed by <rb>, <rt>, or <rtc>, or by the parent’s end tag (MDN / HTML rules — prefer explicit tags for study).
Modern equivalent (one layer):<ruby>字<rt>ji</rt></ruby>
Reference
Attributes
<rtc> has no element-specific attributes — only globals. Common legacy use was lang on the annotation container.
Ruby-capable browsers hide the parentheses and show annotations beside the base.
Fallback browsers still show readable text like 漢(かん).
Edge Cases & Pitfalls
Most problems come from treating parsing support as a green light to keep shipping rtc.
deprecated
Do not use in new HTML
Validators and linters flag <rtc>. Author <ruby> + <rt> instead.
layout
Double-sided rtc is inconsistent
Engines may parse the tags but misplace a second annotation row. Prefer nested ruby + ruby-position.
companions
rb / rbc are also legacy
Many old tutorials pair rtc with <rb> and rbc. Skip all three in new pages.
semantics
rt is not deprecated
Keep using <rt> for annotation text. Only the rtc container is the problem to remove.
a11y
Keep annotations short
Long glosses crowd the line. Prefer concise rt text and expand meaning in nearby prose when needed.
Compatibility
Browser Support
<rtc> is a deprecated HTML element. Prefer <ruby> with <rt> (or nested ruby) in every modern document.
✓ Deprecated · Avoid in new work
<rtc>
Parsed in many engines for legacy content, but MDN marks it Deprecated. Useful double-sided rtc layout is inconsistent — do not rely on it for new pages.
AvoidAuthor guidance
Google ChromeParses (layout varies)
Deprecated
Mozilla FirefoxBest legacy rtc layout
Deprecated
Apple SafariParses (layout varies)
Deprecated
Microsoft EdgeParses (layout varies)
Deprecated
OperaParses (layout varies)
Deprecated
Samsung InternetParses (layout varies)
Deprecated
Internet ExplorerLimited / legacy
Deprecated
<rtc>Do not use in new pages
Bottom line: Parsing support is not a green light. Migrate to ruby + rt (or nested ruby) and treat rtc as archive knowledge.
Remember
Key Takeaways
Status:<rtc> is deprecated — study it, do not ship it.
Replacement:<ruby> + <rt>; nest ruby for two sides.
Style modern pages with selectors on ruby and rt. Leave rtc rules only while cleaning legacy CSS.
Frequently Asked Questions
Historically, rtc (ruby text container) grouped one annotation range inside ruby — often a second, semantic layer next to pronunciation in rt. MDN marks it deprecated; do not use it in new pages.
No for authors. The HTML Standard lists rtc as obsolete/non-conforming. MDN labels it Deprecated. Prefer ruby with rt (and optional rp), or nested ruby for two annotation sides.
For one annotation layer, put base text and rt directly inside ruby. For two sides (reading + meaning), nest ruby elements and place each side with CSS ruby-position. Add rp for fallback parentheses when helpful.
No element-specific attributes. Only global attributes (for example lang on a legacy rtc for the annotation language). Apply lang and class on ruby or rt in modern markup.
rt is the annotation text itself and remains valid. rtc was a container for a whole annotation range (often wrapping rt, or holding semantic text). Skip rtc; keep using rt.
Usually they still parse. Useful double-sided layout for rtc is inconsistent across engines (historically stronger in Firefox). Treat rtc as legacy recognition, not a pattern to copy.