HTML <ruby> (Ruby Annotation) Tag

❮ Previous Reference Next ❯

Example

<p lang="ja" xml:lang="ja">
...
<ruby>
 漢 <rp>(</rp><rt>かん</rt><rp>)</rp>
 字 <rp>(</rp><rt>じ</rt><rp>)</rp>
</ruby>
...
</p>

Meaning

The <ruby> element is used with the <rt> element to create annotations or pronunciation guides for words and phrases.

The base text should be enclosed in a <ruby> element; the annotation, enclosed in an <rt> element, will appear as smaller text above the base text.

The <rp> element can be used to wrap content to delimit ruby text for browsers that do not support this formatting.

Version: HTML5


Standard Syntax

<ruby>...<ruby>

Browser Support

Status







Global Attributes

The <ruby> element also supports the Global Attributes in HTML.


Event Attributes

The <ruby> element also supports the Event Attributes in HTML.




Related Tags:

<rb>, <rbc>, <rp>, <rt> and <rtc>
❮ Previous Reference Next ❯