A tag HTML <rtc> é usada para definir a explicação da anotação ruby ​​que é um pequeno texto, anexado ao texto principal. Esse tipo de anotação é usado em publicações japonesas ou chinesas. A tag <rtc> contém a tag <rt> , essa tag é nova no HTML 5.

Sintaxe:

<rtc> statement </rtc>

Exemplo 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>

Saída:

Exemplo 2: Este exemplo não contém a tag <ruby>.

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

Saída:

Navegadores suportados: Os navegadores suportados pela tag <rtc> estão listados abaixo:

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