HTML5 rt Tag

Last Updated : 27 Jul, 2026

The <rt> tag in HTML is used to define the explanation of the ruby annotation which is a small text, attached with the main text. Such kind of annotation is used in Japanese publications. This tag is new in HTML5.

  • The <rt> tag is used inside the <ruby> element to define the pronunciation or explanation text for the associated main text.
  • It is mainly used for ruby annotations in languages like Japanese and was introduced in HTML5.

Syntax

<rt> Explanation... </rt>

Example 1: This example describes <rt> tag within <ruby> tag. 

HTML
<!--Driver Code Starts-->
<!DOCTYPE html>
<html>

        <body>

        <h1>GeeksforGeeks</h1>
        <h2>&lt;rt&gt; Tag</h2>
<!--Driver Code Ends-->

        <ruby>
            <!-- html rt tag is used here -->
            GFG<rt>GeeksforGeeks</rt>
        </ruby>

<!--Driver Code Starts-->
            
        </body>

</html>  
<!--Driver Code Ends-->

Example 2: This example does not contain <ruby> tag. 

HTML
<!DOCTYPE html>
<html>

<head>
    <title>rt tag</title>
    <style>
        body {
            text-align: center;
        }

        h1 {
            color: green;
        }
    </style>
</head>

<body>
    <h1>GeeksforGeeks</h1>
    <h2>&lt;rt&gt; Tag</h2>
    <rt>GeeksforGeeks Contents</rt>
</body>

</html>
Comment