HTML <ruby> tag
Updated: 11/13/2018 by Computer Hope
When writing in HTML (hypertext markup language), 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, and related attributes and browser compatibility.
Example of <ruby> code
<p><ruby>
今 <rp>(</rp><rt>Today</rt><rp>)</rp>
</ruby></p>
Example result
今
Attributes
All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <ruby> tag has no unique attributes.
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | 5.0+ | 38.0+ | 5.0+ | 15.0+ | 5.0+ |
Browser, Compatibility, Container tag, HTML rp tag, HTML rt tag, Ruby, Web design terms