Class Abbr


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

The abbr element represents an abbreviation or acronym. It is used to mark up abbreviated text and provide an optional expansion or explanation via the title attribute. This helps screen readers and other assistive technologies understand the full meaning of abbreviations, and provides tooltips for users when they hover over the abbreviated text.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple abbreviation Abbr simple = abbr("HyperText Markup Language", "HTML"); // Acronym with expansion Abbr acronym = abbr("World Wide Web", "WWW"); // Technical abbreviation Abbr technical = abbr("Cascading Style Sheets", "CSS"); // Date abbreviation Abbr date = abbr("January", "Jan"); // Abbreviation with styling Abbr styled = abbr("JavaScript Object Notation", "JSON") ._class("abbreviation"); // Multiple abbreviations in text Abbr multiple = abbr() .children( "The ", abbr("World Wide Web Consortium", "W3C"), " defines ", abbr("HyperText Markup Language", "HTML"), " standards." );

The following convenience methods are provided for constructing instances of this bean:

See Also: