<rt>...</rt>

HTML4 HTML5

The <rt> tag (short for Ruby Text) is used to attach a small explanatory or phonetic caption (e.g., word pronunciation)[cite: 3]. It displays directly above the main character or word located inside a <ruby> container[cite: 3].

It is a key element of language annotations – while <ruby> binds the whole structure and <rp> adds optional parentheses for old browsers, the actual tip text is placed inside <rt>[cite: 3].

Both opening and closing tags are mandatory[cite: 3].

Attributes:

Example

In the example below, the phonetic caption Tōkyō inside <rt> will appear above the Japanese characters 東京[cite: 3]:

Code:

<p> Capital of Japan: <ruby> 東京 <rt>Tōkyō</rt> </ruby> </p>

The browser will interpret this code as follows:

Capital of Japan: 東京 Tōkyō