114 of 133 menu

The ruby ​​tag

The ruby tag adds text with an annotation that is located above this text. The annotation in this case is a transcript of the text below it. The tag is most often used for hieroglyphic languages (to decipher the meanings of hieroglyphs), but can be used to write one text above another in any language.

The text to which the annotation is written must be in the ruby tag, and the annotation text must be in the rt tag (rt must be in ruby). Also in ruby there may be a rp tag, which specifies the text for those browsers that do not support the ruby tag.

By default, the annotation is displayed smaller than the text itself. This can be fixed with the CSS property font-size

Example

Let's make an annotation above the text:

It will be simple here <ruby>text word version document book<rt>annotation above the text</rt></ruby> with annotation.

:

See also

  • tag abbr,
    which specifies the abbreviation
byenru