Skip to content
Related Articles

Related Articles

HTML5 | rt Tag
  • Difficulty Level : Basic
  • Last Updated : 04 Mar, 2021
GeeksforGeeks - Summer Carnival Banner

The <rt> tag in HTML is used to define the explaination 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> Explaination... </rt>

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

html




<!DOCTYPE html>
<html>
    <head>
        <title>rt tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
            ruby {
                font-size:25px;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><rt> Tag</h2>
        <ruby>
            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: The browser supported by <rt> tag are listed below: 
 

  • Google Chrome 5.0
  • Internet Explorer 5.5
  • Firefox 38.0
  • Opera 15.0
  • Safari 5.0

 

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :