<ruby>, <rt>, and <rp> Elements

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.

 
<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
    </head> 
<body> 
  
   <ruby> BJ <rp>(</rp><rt>Beijing</rt><rp>)</rp></ruby> 
</p> 
</body> 
</html>
  
Click to view this demo.
Home 
  HTML CSS Book 
    HTML  

Related: