<ruby>

Description

This element defines text that is accompanied by a notation above or below the text. It is used in conjunction with the <rt> element, with the text specified before <rt> considered the base text, and the text following <rt> considered the notation.

The <span> element can be used to set the formatting of each part of the element.

Example


<html>
<body>
     <ruby>
          This is the base text.<!-- w ww . j  ava 2s .co m-->
         <rt>
             This is the ruby text
         </rt> 
     </ruby>
</body>
</html>

Click to view the demo

The code above generates the following result.

ruby




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference