Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML5 rt Tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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.

Syntax:  

<rt> Explanation... </rt>

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

HTML




<!DOCTYPE html>
<html>
 
        <body>
 
        <h1>GeeksforGeeks</h1>
        <h2><rt> Tag</h2>
        <ruby>
            <!-- html rt tag is used here -->
            GFG<rt>GeeksforGeeks</rt>
        </ruby>
             
        </body>
 
</html>

Output: 
 

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><rt> Tag</h2>
        <rt>GeeksforGeeks Contents</rt>
    </body>
</html>                   

Output: 
 

Supported Browsers: 
 

  • Google Chrome 5.0
  • Edge 79.0
  • Internet Explorer 5.0
  • Firefox 38.0
  • Opera 15.0
  • Safari 5.0

 


My Personal Notes arrow_drop_up
Last Updated : 15 Jul, 2022
Like Article
Save Article
Similar Reads