New in HTML5.

<ruby> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
What does <ruby> HTML Tag do?
The <ruby> element is used pair characters of certain Asian languages with pronunciation information. The <ruby> element is used in conjunction with the <rp> and <rt> elements.

Code Example

<ruby><rb>ruby base<rt>annotation</ruby>
ruby baseannotation

Hints and Annotations For Asian Languages

Ruby is used to display pronunciation hints in some Asian languages. It can also display small annotations that are relevant to the main content. Ruby is used in some Asian languages, including Japanese and Taiwanese.

The rb and rt elements are used to identify the portion of the ruby element that is the base and the portion that is the ruby text or annotation.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for and runs a content agency, Red Robot Media.