HTML Tag Reference - HTML tag <rt>








This <rt> element is used with the <ruby> element. The text following <rt> appears as a note to the base text displayed by the <ruby> element.

Browser compatibility

<rt> Yes Yes No Yes Yes

What's new in HTML5

The <rt> tag is new in HTML5.

Global Attributes

The <rt> tag supports the Global Attributes in HTML.

Event Attributes

The <rt> tag supports the Event Attributes in HTML.





Default CSS Settings

rt {
    line-height: normal;
}

Example

A demo showing how to use <rt> tag.

<html>
<body>
     <ruby>
          <span>This is the base text.</span>
          <rt>
               <span>This is the ruby text</span>
          </rt>     
     </ruby>
</body><!--from w  w  w  . ja  v a2s.c o m-->
</html>

Click to view the demo