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>
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.
- This element was introduced in Internet Explorer 5.0 and is now part of the HTML5 specification.
- The <ruby> element must be used in conjunction with the <rt> element; otherwise, it will have no meaning.
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.