Class Rb


@Bean(typeName="rb") public class Rb extends HtmlElementMixed
DTO for an HTML <rb> element.

The rb element represents the base text component of a ruby annotation. It is used within a ruby element to mark up the base text that is being annotated. The rb element is part of the ruby annotation system and is used to provide pronunciation or translation information for text in languages that use complex writing systems, such as Japanese, Chinese, or Korean. It is typically used with rt (ruby text) elements to provide annotations above or below the base text.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple ruby base Rb simple = rb("漢字"); // Rb with styling Rb styled = rb("日本語") ._class("ruby-base"); // Rb with complex content Rb complex = rb( "複雑な", strong("漢字"), "の例" ); // Rb with ID Rb withId = rb("漢字") .id("ruby-base-1"); // Rb with styling Rb styled2 = rb("漢字") .style("font-size: 1.2em; color: #333;"); // Rb with multiple elements Rb multiple = rb( "複雑な", rb("漢字"), "の", rb("例") ); // Rb with links Rb withLinks = new Rb() .children( "漢字", new A().href("/dictionary/kanji").children("辞書") );

See Also: