Class Sup


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

The sup element represents superscript text. It is used to display text that should be rendered above the baseline, typically in a smaller font size. The sup element is commonly used for mathematical formulas, footnotes, ordinal numbers, and other annotations that need to be displayed as superscript.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Mathematical formula Sup math = sup( "x", sup("2"), " + y", sup("2"), " = z", sup("2") ); // Ordinal numbers Sup ordinal = sup("1st", sup("st")); // Footnote reference Sup footnote = sup("1"); // Superscript with styling Sup styled = sup("n") ._class("superscript"); // Multiple superscripts Sup multiple = sup( "A", sup("i,j"), " = B", sup("k") );

See Also: