files/en-us/web/html/reference/elements/rb/index.md
{{deprecated_header}}
The <rb> HTML element is used to delimit the base text component of a {{HTMLElement("ruby") }} annotation, i.e., the text that is being annotated. One <rb> element should wrap each separate atomic segment of the base text.
This element only includes the global attributes.
<rb> element is used to separate out each segment of the ruby base text.<rb> is not a {{glossary("void element")}}, it is common to just include the opening tag of each element in the source code, so that the ruby markup is less complex and easier to read. The browser can then fill in the full element in the rendered version.<rb> element that you want to annotate.In this example, we provide an annotation for the original character equivalent of "Kanji":
<ruby>
<rb>漢</rb><rb>字 </rb><rp>(</rp><rt>kan</rt><rt>ji</rt><rp>)</rp>
</ruby>
Note how we've included two <rb> elements, to delimit the two separate parts of the ruby base text. The annotation on the other hand is delimited by two {{htmlelement("rt")}} elements.
{{EmbedLiveSample("Using_rb", "100%", 60)}}
Note that we could also write this example with the two base text parts annotated completely separately. In this case we don't need to include <rb> elements:
<ruby>
漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
{{EmbedLiveSample('Separate annotations')}}
See the article about the {{HTMLElement("ruby")}} element for further examples.
{{Specifications}}
{{Compat}}