Class Strong<T extends Strong<T>>


public class Strong<T extends Strong<T>> extends PhrasingContentElement<T>
Java representation of the HTML <strong> element.

The Strong class represents text with strong importance, typically displayed in bold. Unlike <b>, this element carries semantic meaning indicating the text is important.

Features:

  • Semantic importance indicator
  • Typically renders as bold text
  • Screen readers may emphasize strong text

Usage:


 Strong important = new Strong("Warning:");
 div.addElement(new Strong("Important notice"));
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Strong

      public Strong()
      Constructs an empty <strong> element.
    • Strong

      public Strong(String text)
      Constructs a <strong> element with the specified text content.
      Parameters:
      text - the important text content