rp (HTML element)
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
The effect of using
can be seen in Figure 1.
rpelement hiding parentheses in supporting browsers
Consider this example usage of
<ruby> <rb>家辺 勝文</rb> <rt><rp>(</rp>liaison<rp>)</rp></rt> </ruby>
Use This For …
This element is used to
contain the annotation that relates to the foreign characters (contained
rb element) which require
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.
There are no comments yet.