Name

ruby — HTML5

Synopsis

<ruby> . . . </ruby>

Represents a run of text marked with ruby annotations, short guides to pronunciation, and other notes used primarily in East Asian typography.

Notes

HTML5 only.

Start/End Tags

Required/Required

Attributes

HTML5 Global Attributes

Example

In the following example, the pronunciation tips in the rt elements will be displayed above the ideographs in visual browsers:

<ruby><rt>hàn</rt><rt></rt>
</ruby>

This example was taken from the HTML5 Working Draft at whatwg.com, used with permission under an MIT License.

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.