HTML/Elements/rp

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

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

<rp>

The <rp> element can be used to provide parentheses around a ruby text component of a ruby annotation.

Point

  • Parentheses be shown by user agents that don't support ruby annotations.


HTML Attributes

See global attributes.


Examples

Example A

The example above, in which each ideograph in the text 漢字 is annotated with its phonetic reading, could be expanded to use rp so that in legacy user agents the readings are in parentheses [try it]:

<p>
...
<ruby>
 漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
 字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>
...
</p>


HTML Reference

The HTML5 specification defines the <rp> element in 4.6.21 The rp element.