Class H5<T extends H5<T>>

All Implemented Interfaces:
HgroupElement

public class H5<T extends H5<T>> extends PhrasingContentElement<T> implements HgroupElement
Represents an HTML <h5> (level 5 heading) element.

The <h5> element defines a fifth-level heading in HTML documents. Headings range from <h1> (most important) to <h6> (least important), with <h5> representing a sub-sub-subsection heading. Headings help structure content hierarchically and improve both accessibility and SEO.

Features:

  • Fifth-level heading in document hierarchy
  • Helps organize content into detailed sections
  • Improves document accessibility and navigation
  • Supports both text content and inline elements

Usage:


 // Create a heading with text
 H5 heading = new H5("Minor Subsection");

 // Create empty heading and add content later
 H5 heading = new H5();
 heading.addText("Additional Information");
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • H5

      public H5()
      Constructs an empty <h5> element.

      Creates a level 5 heading without initial text content. Text or inline elements can be added later using inherited methods.

    • H5

      public H5(String text)
      Constructs an <h5> element with the specified text content.
      Parameters:
      text - the heading text; may be null or empty