Class B<T extends B<T>>


public class B<T extends B<T>> extends PhrasingContentElement<T>
Java representation of the HTML <b> element.

The B class represents bold text without implying any extra importance. This is a text formatting element that renders content in bold font weight.

Features:

  • Renders text in bold font weight
  • Inline text formatting element
  • No semantic meaning (use Strong for important text)

Usage:


 // Create bold text
 B bold = new B("Bold Text");

 // Add to container
 div.addElement(new B("Important"));
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • B

      public B()
      Constructs an empty <b> element.
    • B

      public B(String text)
      Constructs a <b> element with the specified text content.
      Parameters:
      text - the text content to display in bold