Class H1<T extends H1<T>>

All Implemented Interfaces:
HgroupElement

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

The H1 class represents the highest level heading in HTML documents, typically used for main page titles or major section headings. It is the largest and most important heading level.

Usage:


 H1 heading = new H1("Page Title");
 H1 heading = new H1();
 heading.addText("Main Heading");
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • H1

      public H1()
      Constructs an empty <h1> element.
    • H1

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