: The Ruby Fallback Parenthesis element - HTML | MDN (original) (raw)

Try it

<ruby>
  漢 <rp>(</rp><rt>kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>

Attributes

This element only includes the global attributes.

Usage notes

Examples

Using ruby annotations

This example uses ruby annotations to display the Romaji equivalents for each character.

<ruby>
  漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
body {
  font-size: 22px;
}

Result

See the article about the element for further examples.

Without ruby support

If your browser does not support ruby annotations, the result looks like this instead:

body {
  font-size: 22px;
}

Technical summary

Content categories None.
Permitted content Text
Tag omission The end tag can be omitted if the element is immediately followed by an or another element, or if there is no more content in the parent element.
Permitted parents A element. must be positioned immediately before or after an element.
Implicit ARIA role No corresponding role
Permitted ARIA roles Any
DOM interface HTMLElement

Specifications

Specification
HTML # the-rp-element

Browser compatibility

See also