Summary -
In this topic, we described about the <rb> tag along with detailed example.
The <rb> tag was introduced in HTML5. Ruby base text in HTML documents. The <rb> used to specify the ruby base text. It’s a part of ruby element.
Ruby annotations are used in East Asian typography. The tag can be specified like <rb></rb> with the text written between the opening and closing tags.
The <rb> element must be inside a <ruby> element. The closing tag not required if the <rb> element is immediately followed by an <rb>, <rt>, <rtc> or <rp> element.
In all other cases the end tag is required.
Syntax -
<rb>…. </rb>
Example -
<!DOCTYPE html>
<html>
<head>
<title> rb element example.. </title>
</head>
<body>
<ruby>
<rb>Text</rb>
<rt>Annotation</rt>
</ruby>
</body>
</html>