Advertisement
❮ Previous: <rt> Next: <s> ❯

<ruby>

HTML <ruby> (Ruby Annotation) Tag

Example

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

Try this code ❯

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


Advertisement

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: <rt> Next: <s> ❯
Advertisement