HTML <ruby> tag

Updated: 10/11/2017 by Computer Hope

HTML ruby tagWhen writing in HTML, the <ruby> tag is an inline element used to designate a ruby annotation on a web page. It is useful when you want to show visitors how to pronounce East Asian characters. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Example code

今 <rp>(</rp><rt>Today</rt><rp>)</rp>

Example result



Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <ruby> tag does not have any unique attributes, it does utilize all of the standard attributes.


Internet Explorer Firefox Safari Opera Chrome
5.0+ 38.0+ 5.0+ Not supported 5.0+

Browser, Compatibility, HTML rp tag, HTML rt tag, Ruby, Web design terms