The <rb> element once marked each base text segment inside a <ruby> annotation — the characters being annotated (often East Asian text with readings).
Learn it only to recognize legacy markup and migrate it. For new pages, put the base characters directly inside <ruby>, annotate with <rt>, and optionally add <rp> fallback parentheses. Skip <rtc> as well (also legacy).
Deprecated.
Do not use <rb> in new projects. Prefer <ruby> + <rt> (+ optional <rp>) without an rb wrapper.
Note.
One <rb> was meant for each atomic base segment you wanted to pair with an <rt>. Opening tags alone were common; browsers filled in the rest when allowed by the parser rules.
Syntax
HTML Syntax
syntax.html
<ruby><rb>base</rb><rt>reading</rt></ruby>
Only valid as a child of <ruby>. The end tag may be omitted if <rb> is immediately followed by <rt>, <rtc>, <rp>, or another <rb>, or when the parent has no more content.
Reference
Attributes
The <rb> element has no element-specific attributes — only global attributes.
Attribute
Description
Notes
None specific
No dedicated attributes on <rb> itself.
Deprecated element. Prefer modern ruby / rt markup.
Write the first base character, then its rp/rt/rp group.
Repeat for the next character the same way.
No <rb> is required to separate the segments.
This matches modern MDN guidance for per-character annotations.
Edge Cases & Pitfalls
Most rb issues today are using it in new code or mixing old and new ruby models.
deprecated
Do not ship new rb markup
Even if a browser still parses it, the feature is deprecated. Teach and write ruby + rt instead.
parent
Only inside ruby
<rb> is not a general wrapper. Outside <ruby> it has no useful meaning.
rtc
Avoid rtc with it
Complex ruby containers are also legacy. Keep new annotations to ruby, rt, and rp.
support
Support is inconsistent
Some engines treat unknown or deprecated ruby pieces loosely. Relying on rb pairing is fragile — another reason to migrate.
Compatibility
Browser Support
The <rb> element is deprecated HTML. Do not depend on it for new work. Modern ruby / rt / rp are the supported path.
✓ Deprecated
<rb>
Marked deprecated on MDN. Browsers may still parse ruby layouts that include rb, but behavior is legacy and not a reason to author new rb markup.
LegacyStatus for new sites
Google ChromeLegacy / limited
Deprecated
Mozilla FirefoxLegacy / limited
Deprecated
Apple SafariLegacy / limited
Deprecated
Microsoft EdgeLegacy / limited
Deprecated
OperaLegacy / limited
Deprecated
Samsung InternetLegacy / limited
Deprecated
Internet ExplorerPartial (legacy)
Deprecated
<rb>Deprecated — avoid
Bottom line: Recognize rb in old documents, then rewrite with ruby + rt (+ optional rp). Do not use rb in new HTML.
Remember
Key Takeaways
Status:<rb> is deprecated — study legacy pages, do not write new ones.
Replace: base text + <rt> inside <ruby>, no rb wrapper.
Fallback: optional <rp> parentheses for non-ruby UAs.
Also skip:<rtc> belongs with the same legacy ruby model.
One line: recognize <rb>, then annotate with <ruby> and <rt> only.
UA style
Default CSS Settings
rb has no meaningful dedicated UA stylesheet of its own. Ruby layout comes from the parent:
default.css
ruby {
display: ruby;
}
rb {
/* no special default styling beyond ruby participation */
display: ruby-base;
}
Exact display values and pairing behavior vary by engine. Prefer styling ruby and rt in modern documents.
Frequently Asked Questions
Yes. MDN marks rb as deprecated. Do not use it in new projects. Put base text directly inside ruby and annotate with rt (and optional rp).
It wrapped each base-text segment inside a ruby annotation — the characters being annotated (for example kanji shown with furigana).
Use ruby with the base characters as direct content, plus rt for the reading. Add rp parentheses for browsers that do not show ruby layout.
In the old model, yes — one rb segment per annotation you wanted to match. Modern markup pairs base text with rt without rb wrappers.
In HTML, the end tag may be omitted when rb is immediately followed by rt, rtc, rp, or another rb, or when the parent ends. Prefer writing both tags if you must read legacy examples.
Yes historically. rtc (ruby text container) is also obsolete/legacy. Prefer ruby + rt + rp for new documents.