Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <ruby> tag


May 05, 2021 HTML Reference Manual


Table of contents


HTML and ruby and tags

The label is used as a comment label to annotate text or characters, please refer to the following example:

A ruby note:

<ruby>
Han slt;rp>(lt;/rp>rt>Han?lt;rt<rp>)?lt;/rp>
The word slt;rp>(lt;/rp>rt>Zi<rt<rp>)/rp>
</ruby>

Try it out . . .

Browser support

HTML <ruby> tag HTML <ruby> tag HTML <ruby> tag HTML <ruby> tag HTML <ruby> tag

IE 9 Plus, Firefox, Opera, Chrome, and Safari support the hashtags.

Note: IE 8 or earlier versions of IE browsers do not support the hashtag.


Label definition and instructions for use

The label defines ruby comments (Chinese or characters).

Used in East Asia, the pronunciation of East Asian characters is displayed.

Use the hashtags with the hashtags .
The element consists of one or more characters that need to be interpreted/pronounced and one element that provides that information, and also includes an optional element, which defines what is displayed when the browser does not support the "ruby" element.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML5.


Global properties

The label supports the global properties of HTML.


The event property

The label supports the event properties of HTML.


Expand your knowledge

Ruby is also a pure object-oriented programming language, an open source, generic, interpreted programming language that can be used to write Common Gateway Interface (CGI) scripts, and can be embedded in hyper-text markup languages (HTML)

For more information about the Ruby language, you can refer to the Ruby Tutorials on this site!