<rb>
rb tag
The <rb> element in HTML is used within a <ruby> element to define the base text being annotated. It typically consists of one or more characters receiving ruby annotations.
Syntax
<ruby>
<rb>Base Text</rb>
<rt>Annotation</rt>
</ruby>
rb Demo
Example with ruby text:
<p>
Example with ruby text: <ruby><rb>漢字</rb><rt>Kanji</rt></ruby>.
</p>
Definition and Usage
The <ruby> tag is used for ruby annotations, which provide additional text to indicate pronunciation or meaning, commonly seen in Japanese texts. The <rt> tag is used for annotations, while the optional <rp> tag ensures compatibility with browsers that do not support ruby annotations. The <ruby> element contains the annotated characters, and <rt> provides the relevant details.
Attributes
This element includes global attributes.
See also
Conclusion
The <rb> tag in HTML is used within the <ruby> element to specify the base text being annotated, often seen in languages such as Japanese. It works alongside the <rt> tag, which provides the annotation (such as pronunciation or meaning). This structure helps present text with additional context, enhancing readability and comprehension. The <ruby> system is particularly useful for displaying annotated characters in complex scripts.
<q>
The <q> element in HTML is used for inline quotations, usually rendered with quotation marks, to indicate a brief citation or excerpt within the surrounding text.
<rp>
The HTML <rp> element offers parentheses or alternative text for browsers lacking support for ruby annotations. It is used in conjunction with <ruby>, <rt>, and <rb> to enhance the presentation of ruby text.