concept
Ruby base and annotation — CSS reference
Ruby pairs short reading or pronunciation annotations with the text they describe. It is not a tooltip; preserve the reading in the document and use markup rather than generated decoration.
Formal Syntax & Structure
css syntaxcss
<ruby>東京<rt>とうきょう</rt></ruby>Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Ruby base and annotation</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}
</style><body><p lang="ja"><ruby id="r"><span id="b">東京</span><rt id="t">とうきょう</rt></ruby></p></body></html>