<rtc>

HTML <rtc> Tag

The HTML <rtc> element specifies semantic annotations of characters that are presented in <rb> elements used inside a <ruby>. The <rb> elements can have both semantic (<rtc>) and pronunciation (<rt>) annotations.

Ruby annotations are usually used in East Asian typography. Rubi characters are small, annotative characters that are placed above or to the right of a Chinese character to show the pronunciation.

The <rtc> tag is one of the HTML5 elements.

Syntax

Syntax

The <rtc> tag comes in pairs. The content is written between the opening (<rtc>) and closing (</rtc>) tags. The closing tag of the <rtc> element may be omitted when is immediately followed by <rb>, <rt>, <rp> or <rtc>, or when there isn’t any content in the parent element.

Example of the HTML <rtc> tag:

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <ruby>
      <rbc>
        <rb>旧</rb>
        <rt>jiù</rt>
        <rb>金</rb>
        <rt>jīn</rt>
        <rb>山</rb>
        <rt>shān</rt>
      </rbc>
      <rtc>San Francisco</rtc>
    </ruby>
  </body>
</html>

Result

The <rtc> tag supports the Global Attributes and Event Attributes.



请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部