HTML/Elements/rt

From Web Education Community Group
< HTML‎ | Elements
Revision as of 17:17, 22 November 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<rt>

The <rt> element marks the ruby text component of a ruby annotation.

Point

  • An rt element that is a child of a ruby element represents an annotation for the nodes that immediately precedes.


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>

Rt01.png

HTML Reference

The HTML5 specification defines the <rt> element in 4.6.20 The rt element.