Class H2<T extends H2<T>>

All Implemented Interfaces:
HgroupElement

public class H2<T extends H2<T>> extends PhrasingContentElement<T> implements HgroupElement
Java representation of the HTML <h2> element.

The H2 class represents a second-level heading in HTML documents, typically used for major subsection headings within a page or section.

Usage:


 H2 heading = new H2("Section Title");
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • H2

      public H2()
      Constructs an empty <h2> element.
    • H2

      public H2(String text)
      Constructs an <h2> element with the specified text content.
      Parameters:
      text - the heading text