rtc (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| No | No | XHTML 1.1 |
| IE5.5+ | FF3.5 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| Buggy | None | None | None | None |
Syntax
Description
The rtc
(ruby text container) element groups a collection of rt elements that hold the annotations related to the
contents of the rbc container. The example above
contains four Japanese characters (the more complex Kanji symbols), each
with its own rb element, while the ruby annotations
inside the related rt elements are written in hiragana
syllables (known as furigana when used for this purpose). In the example
shown above, which was taken from the W3C documentation, there are two
rtc elements that provide Japanese and English
annotations.
The intended rendering of this code is shown in Figure 1. However, only the first image in the example is behaving—and that’s because it’s a suggested rendering in the W3C documentation. The code’s true rendering is shown in the following two images, which are taken from Internet Explorer and Firefox, respectively.
rbc and
rtc elements
Example
Consider this example usage of
rtc:
<ruby xml:lang="ja">
<rbc>
<rb>斎</rb>
<rb>藤</rb>
<rb>信</rb>
<rb>男</rb>
</rbc>
<rtc class="reading">
<rt>さい</rt>
<rt>とう</rt>
<rt>のぶ</rt>
<rt>お</rt>
</rtc>
<rtc class="annotation">
<rt rbspan="4" xml:lang="en">W3C
Associate Chairman</rt>
</rtc>
</ruby>
Use This For …
This element is used to
contain multiple rt elements in complex ruby
annotations.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | Chrome | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 3.0 | 3.5 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| Buggy | Buggy | Buggy | Buggy | None | None | None | None | None | None | None | None | None | None | None | None | None |
Only Internet Explorer offers any support for
text marked up using ruby at this time. Other browsers
ignore the markup and display the ruby text in the order in which it
appears in the source.