Skip to content
Related Articles

Related Articles

Improve Article

HTML | <rtc> Tag

  • Last Updated : 27 Aug, 2019

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, this tag is new in HTML 5.

Syntax:

<rtc> statement </rtc>

Example 1:




<!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.






<!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: The browser supported by <rtc> 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 Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :