Warning:
This wiki has been archived and is now read-only.

Elements/ruby

From HTML Wiki
Jump to: navigation, search

<ruby>

The <ruby> element allows one or more spans of phrasing content to be marked with ruby annotations.

Point

  • Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations.
    In Japanese, this form of typography is also known as furigana.


HTML Attributes

See global attributes.


Examples

Example A

In this example, each ideograph in the Japanese text 漢字 is annotated with its reading in hiragana. [try it]:

<p>...<ruby>漢<rt>かん</rt>字<rt>じ</rt></ruby>...</p>


HTML Reference

The HTML5 specification defines the <ruby> element in 4.6.19 The ruby element.