Class Abbr<T extends Abbr<T>>


public class Abbr<T extends Abbr<T>> extends PhrasingContentElement<T>
Represents an HTML <abbr> element for defining abbreviations or acronyms.

The Abbr element is used to mark up abbreviations or acronyms, typically with a title attribute that provides the full expansion. This provides semantic meaning and can improve accessibility for screen readers and other assistive technologies.

Features:

  • Semantic markup for abbreviations and acronyms
  • Title attribute for full expansion text
  • CSS styling support
  • Accessibility enhancement through proper markup

Usage:


 // Simple abbreviation
 Abbr html = new Abbr("HTML", "HyperText Markup Language");

 // With custom styling
 Abbr css = new Abbr("CSS", "Cascading Style Sheets", "color: blue;");
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Abbr

      public Abbr()
      Constructs an empty <abbr> element.
    • Abbr

      public Abbr(String text, String title)
      Constructs an <abbr> element with text and title.
      Parameters:
      text - the abbreviation text to display
      title - the full expansion of the abbreviation
    • Abbr

      public Abbr(String text, String title, String style)
      Constructs an <abbr> element with text, title, and inline style.
      Parameters:
      text - the abbreviation text to display
      title - the full expansion of the abbreviation
      style - the inline CSS style string
    • Abbr

      public Abbr(String text, String title, CssStyle style)
      Constructs an <abbr> element with text, title, and CSS style object.
      Parameters:
      text - the abbreviation text to display
      title - the full expansion of the abbreviation
      style - the CssStyle object defining styles