Class H3<T extends H3<T>>

All Implemented Interfaces:
HgroupElement

public class H3<T extends H3<T>> extends PhrasingContentElement<T> implements HgroupElement
Represents the HTML <h3> element for third-level headings.

The H3 class provides a Java representation of the HTML heading level 3 element, which defines a third-level heading in the document structure. H3 headings are typically used for subsections within H2 sections, creating a hierarchical content structure.

Features:

  • Third-level semantic heading
  • Hierarchical document structure
  • Improved SEO and accessibility
  • Default bold and larger text styling
  • Full CSS styling capabilities

Usage Example:


 // Create a subsection heading
 H3 heading = new H3("Product Features");

 // Create an empty heading and add text
 H3 heading = new H3();
 heading.setText("Technical Specifications");

 // Typical heading hierarchy
 H1 pageTitle = new H1("User Guide");
 H2 sectionTitle = new H2("Getting Started");
 H3 subsectionTitle = new H3("Installation");
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • H3

      public H3()
      Creates a new empty H3 heading element.
    • H3

      public H3(String text)
      Creates a new H3 heading element with the specified text.
      Parameters:
      text - The heading text.