HTML Dog
Skip to navigation

HTML Tag: ruby

Ruby annotation, used as a guide for pronunciation of characters that are likely to be unfamiliar to the reader. Typically exploited in East Asian written languages.

Used in conjunction with rb (base text), rt (ruby text), rtc (text container), and rp (fallback parentheses).

Optional Attributes

Global attributes

Example


<!-- basic ruby annotation structure: -->

<ruby>
    <rb>Base text</rb>
    <rt>Annotation</rt>
</ruby>


<!-- "Tokyo" in Japanese, annotated with hiragana syllabary: -->

<ruby>
    <rb>東京</rb>
    <rp>(</rp>
    <rt>とうきょう</rt>
    <rp>)</rp>
</ruby>