rp (HTML element)

Depr. Empty Version
No No XHTML 1.1
Browser support (more…)
IE5.5+ FF3.5 SA4 OP10 CH2
Full None None None None




Despite having been defined as far back as 2001, ruby doesn’t enjoy great support in browsers. For a change, Internet Explorer is ahead of the game on this one! Created in light of the fact that not all browsers will understand ruby, the rp element may be used to present content to users who are viewing the ruby text on a browser that doesn’t understand or support ruby, but removes that content for browsers that do support ruby. The content inside the rp element should be an opening or closing parenthesis, although there’s no definitive rule about which character should be used. It’s most likely that you’ll use "(",")","[" or "]".

The effect of using rp can be seen in Figure 1.

Figure 1. The ruby rp element hiding parentheses in supporting browsers Ruby rp element hiding parenthesis in supporting browsers


Consider this example usage of rp:

 <rb>家辺 勝文</rb>

Use This For …

This element is used to contain the annotation that relates to the foreign characters (contained in the rb element) which require annotation.


Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full None None None None None None None None None None None None None

Only Internet Explorer offers any support for text marked up using ruby at this time. Other browsers ignore the markup and display the ruby text in the order in which it appears in the source.

User-contributed notes

There are no comments yet.

Related Products