Class Rt


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

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

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple ruby text Rt simple = rt("かんじ"); // Rt with styling Rt styled = rt("にほんご") ._class("ruby-text"); // Rt with complex content Rt complex = rt( "ふくざつな", strong("かんじ"), "のれい" ); // Rt with ID Rt withId = rt("かんじ") .id("ruby-text-1"); // Rt with styling Rt styled2 = rt("かんじ") .style("font-size: 0.8em; color: #666;"); // Rt with multiple elements Rt multiple = rt( "ふくざつな", rt("かんじ"), "の", rt("れい") ); // Rt with links Rt withLinks = new Rt() .children( "かんじ", new A().href("/dictionary/kanji").children("じしょ") );

See Also: