Summary
The HTML <rp>
element is used to provide fall-back parenthesis for browsers non-supporting ruby annotations. Ruby annotations are for showing pronounciation of East Asian characters, like using Japanese furigana or Taiwainese bopomofo characters. The <rp>
element is used in the case of lack of {{ HTMLElement("ruby") }} element support its content has what should be displayed in order to indicate the presence of a ruby annotation, usually parentheses.
Content categories | None. |
---|---|
Permitted content | Phrasing content. |
Tag omission | {{no_tag_omission}} |
Permitted parent elements | A {{HTMLElement("ruby")}} element. <rp> must be positioned immediately before or after an {{HTMLElement("rt")}} element. |
DOM interface | {{domxref("HTMLElement")}} |
Attributes
This element only includes the global attributes.
Example
<ruby> 漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp> </ruby>
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-rp-element', '<rp>')}} | {{Spec2('HTML WHATWG')}} | |
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-rp-element', '<rp>')}} | {{Spec2('HTML5 W3C')}} |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 5.0 | {{CompatGeckoDesktop(38)}} | 5.0 | {{CompatNo}} | 5.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(38)}} | {{CompatVersionUnknown}} | {{CompatNo}} | {{CompatVersionUnknown}} |
See also
- {{HTMLElement("ruby")}}
- {{HTMLElement("rt")}}
{{ HTMLRef }}