HTML5 <ruby> Tag
The <ruby> tag in HTML is used to specify the ruby annotation which is a small text, attached with the main text to specify the meaning of the main text. This kind of annotation is used in Japanese publications.
Syntax:
<ruby attributes> Contents... </ruby>
Note: <ruby> tag contains two other tags which are listed below:
Example:
HTML
<!DOCTYPE html> < html > < body > < h1 >w3wiki</ h1 > < h2 >< ruby > Tag</ h2 > <!-- html ruby tag is used here --> < ruby >GFG< rt >w3wiki</ rt ></ ruby > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome 5.0
- Edge 12.0
- Internet Explorer 5.0
- Firefox 38.0
- Opera 15.0
- Safari 5.0
Contact Us