Open In App

HTML <rtc> Tag

Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <rtc> tag 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 or chinese publications. The <rtc> tag contains the <rt> tag.

Note: HTML <rtc> tag is not supported in html5.

Syntax:

<rtc> statement </rtc>

Example 1: It is a basic example of <rtc> tag.

html




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML <rtc> tag</title>
    <style>
        body {
            text-align: center;
        }
          
        h1 {
            color: green;
        }
          
        ruby {
            font-size: 25px;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML <rtc> Tag</h2>
    <ruby>
        <rtc>
            <rt>♥</rt>
        </rtc>
    </ruby>
</body>
  
</html>


Output:

  

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

html




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML <rtc> tag</title>
    <style>
        body {
            text-align: center;
        }
          
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML <rtc> Tag</h2>
    <rtc>
        <rt>GeeksforGeeks Contents</rt>
    </rtc>
</body>
  
</html>


Output:

  

Supported Browsers:

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


Last Updated : 04 Mar, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads