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
<p>
<ruby>
<rb>新年快乐</rb>
<rt>Xín Nián Kuài le</rt>
</ruby>
</p>
The preceding example will render in a Web browser like this:
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