Skip to: content, navigation

by Ian Lloyd

rp (HTML element)

Spec
Depr. Empty Version
No No XHTML 1.1
Browser support full matrix
IE5.5+ FF2 Saf3 Op9.5
Full None None None

Example

Consider this example usage of rp:

<ruby>
 <rb>家辺 勝文</rb>
 <rt><rp>(</rp>liaison<rp>)</rp></rt>
</ruby>
Type
inline element
Contains
text content—parentheses
Contained by
rt

Description

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

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.

Compatibility

IE5.5Full
6.0Full
7.0Full
Firefox1.0None
1.5None
2.0None
Safari1.3None
2.0None
3.0None
Opera9.2None
9.5None

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.

Related Reading

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters