PUBLISHED ON: FEBRUARY 20, 2021
HTML Ruby Tag
In HTML, the <ruby>
tag is used for ruby annotation.
-
For the representation of East Asian Characters, Ruby Annotations are used.
-
Ruby annotations indicated by <ruby> tag are small extra text and this is attached with the main text; the main text indicates the meaning of the corresponding characters.
-
The <ruby>
tag is used among two other tags <rt>
and <rp>
tags
-
The <ruby>
tag is used for phrasing content.
-
The <ruby>
tag is a new tag in HTML5
HTML <ruby>
Tag Syntax and Usage
The <ruby>
tag requires both openings (start) and closing(end) tag. The basic syntax for the same is given below:
<ruby>
....content here
</ruby>
HTML <ruby>
Tag Basic Example
Below we have a basic example showing the usage of <ruby>
tag:
HTML <ruby>
Tag Attributes
This element does not have any specific attributes although this element supports Global and Event attributes.
Browser Support for HTML <ruby>
Tag
Following browsers support this attribute:
-
Google Chrome 5+
-
Internet Explorer 5.5+
-
Safari 5+
-
Opera 15+