MDN self-hosted library · e01.org

`<rtc>` HTML ruby text container element

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

no runnable cells html-element upstream source

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

tabbed-standard

```html interactive-example 馬(mǎ) 來(lái) 西(xī) 亞(yà) (Malaysia)


```css interactive-example
ruby {
  font-size: 2em;
  ruby-position: under;
}

rtc {
  ruby-position: over;
}

Attributes

This element only includes the global attributes.

Examples

<div class="info">
  <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>
</div>

css hidden .info { padding-top: 10px; font-size: 36px; }

Result

600

Technical summary

Content categories None.
Permitted content Phrasing content or rt elements.
Tag omission The closing tag can be omitted if it is immediately followed by a rb, <rtc> or rt element opening tag or by its parent closing tag.
Permitted parents A ruby element.
Permitted ARIA roles Any
DOM interface HTMLElement

Specifications

Browser compatibility

See also