Class Rp


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

The rp element represents a fallback parenthesis for browsers that do not support ruby annotations. It is used within a ruby element to provide fallback text that will be displayed when ruby annotations are not supported. The rp element is typically used to wrap parentheses around ruby text (rt elements) to provide a fallback display format. It is part of the ruby annotation system and helps ensure that ruby annotations are displayed correctly across different browsers.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple ruby parenthesis Rp simple = rp("("); // Rp with styling Rp styled = rp(")") ._class("ruby-paren"); // Rp with complex content Rp complex = rp( "(", strong("注"), ")" ); // Rp with ID Rp withId = rp("(") .id("ruby-paren-1"); // Rp with styling Rp styled2 = rp(")") .style("color: #999; font-size: 0.8em;"); // Rp with multiple elements Rp multiple = rp( "(", rp("注"), ")" ); // Rp with links Rp withLinks = new Rp() .children( "(", new A().href("/help/ruby").children("注"), ")" );

See Also: