Ruby characters are notations placed above or to the right of characters.
The <ruby>
denotes a span of text that contains a ruby.
You use the ruby element in conjunction with the rt and rp elements.
The rt
element marks the ruby notation.
The rp
element denotes parentheses around an annotation that can be displayed by browsers that don't support ruby annotations.
<rp> |
Yes | Yes | No | Yes | Yes |
The <rp> tag is new in HTML5.
The <rp> tag supports the Global Attributes in HTML.
The <rp> tag supports the Event Attributes in HTML.
None.
A demo showing how to use <rp> tag.
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<!-- w ww . ja v a2 s . c om-->
<ruby> BJ <rp>(</rp><rt>Beijing</rt><rp>)</rp></ruby>
</p>
</body>
</html>