XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / rp

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

rp

HTML 5

<rp> ... </rp>

Used together with the element ruby to enclose ruby text in parentheses that appear if the user agent (browser) does not support ruby annotations. Ruby annotations clarify the pronunciation of East Asian typography. (This does not refer to the Ruby programming language!)

Notes

HTML 5 only.

Start/end tag

Required/required

Attributes

Global HTML 5 attributes

Example

In the following example, a browser unable to display ruby annotations would show the alternative content within the rt elements in parentheses after the character.

<ruby>
  汉 <rp>(</rp><rt>hàn</rt><rp>)</rp>
  字 <rp>(</rp><rt>zì</rt><rp>)</rp>
</ruby>

 

> back to the alphabetical list of elements

   

 

 

 

back to top