The XHTML WYSIWYG Editor For Desktop & Web Applications

ruby

Definition

Ruby is mechanism for adding annotations to characters of East Asian languages such as Chinese and Japanese. These annotations typically appear in smaller typeface above or to the side of regular text, and are meant to help with pronunciation of obscure characters or as a language learning aid.

Example

  1. <p>
  2. <ruby>
  3. <rb>新年快乐</rb>
  4. <rt>Xín Nián Kuài le</rt>
  5. </ruby>
  6. </p>

The preceding example will render in a Web browser like this:

Screen shot of a Web browser with Chinese characters. Above the text, in smaller font, are pronunciation instructions.

Attributes

Contains

Either one of the following two content sets must appear:

rb followed by either rt or the sequence rp followed by rt followed by rp
rbc followed by either one or two occurances of rtc

Notes

Ruby is part of the XHTML 1.1 specification. Support for ruby is currently quite limited. Internet Explorer partially supports ruby.

See also

Further reading