Designates an annotation or pronunciation guide to be placed above or inline with a string of text. | HTML 5 |
HTML Syntax
<ruby
class = classname
dir = ltr | rtl
id = value
name = name
style = css_style_rules
title = text
>
A ruby is a commonly used name for an annotation or pronunciation guide to a string of text. The string of text annotated with a ruby is referred to as the base.
Valid objects within the RUBY object are:
The RB object is optional and specifies the base text for the RUBY. Text not contained within the ruby text object, RT, is assumed to be a part of the base.
NOTE: Both start and end tags are required.
The <ruby>
element has no attribute of its own, but supports global attributes common to all HTML elements.
The following sample outlines the implementation of the RUBY object. The sample specifies one string of text as the base, and a second string of text as the ruby.
<RUBY>
<RB>Base Text
<RT>Ruby Text
</RUBY>
Show me
RB RT