| Depr. | Version |
|---|---|
| No | XHTML 1.1 |
| IE8 | FF3.5 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| None | None | None | None | None |
Syntax
Description
The
rbspan attribute allows you to specify, using their
respective rb elements, the number of characters in
a previous ruby base container (rbc) that the
annotation in this rt element relates to. To put
that into context, consider the example shown above. The four Japanese
characters collectively relate to the title of W3C Associate Chairman;
hence, we make that annotation span four rb elements
using rbspan="4".
Example
In this code, the English annotation is set to span all four of the Japanese characters:
<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>
Value
This attribute takes as its value a
number that must tally with the number of rb elements
contained inside the rbc element to which it
relates.
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 |
| None | None | None | None | 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.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.