<rt>: The HTML Ruby Text Element
I. Description
The
HTML
<rt>
element is used to enclose the
text that should appear adjancent to the preceeding character. Generally
the
<rt>
element should be between two rp elements, the rp element
to the left should contain an open parenthesis, and the rp element to the
right should contain a close parenthesis.
The
<rt>
element must be a child of a
<ruby>
element.
See Also
The
<rt>
element is used in conjunction with the
<ruby>
and rp elements.
II. Examples
<!DOCTYPE html>
<html>
<head>
<title>Ruby Example Page</title>
</head>
<body>
<h1>Ruby Example Page</h1>
<p>
The japanese Kanji for <i>water</i> is
<ruby>
水<rp>(</rp><rt>Mizu</rt><rp>)</rp>
</ruby>;
the word <i>water</i> may be written in Hiragana as
<ruby>
み<rp>(</rp><rt>mi</rt><rp>)</rp>
ず<rp>(</rp><rt>zu</rt><rp>)</rp>
</ruby>.
</p>
</body>
</html>
This document was last updated: