Class H6<T extends H6<T>>

All Implemented Interfaces:
HgroupElement

public class H6<T extends H6<T>> extends PhrasingContentElement<T> implements HgroupElement
Represents an HTML <h6> (level 6 heading) element.

The <h6> element defines a sixth-level heading in HTML documents. Headings range from <h1> (most important) to <h6> (least important), with <h6> being the lowest level heading. Headings help structure content hierarchically and improve both accessibility and SEO.

Features:

  • Sixth and lowest level heading in document hierarchy
  • Helps organize content into fine-grained sections
  • Improves document accessibility and navigation
  • Supports both text content and inline elements

Usage:


 // Create a heading with text
 H6 heading = new H6("Detailed Point");

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

    • H6

      public H6()
      Constructs an empty <h6> element.

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

    • H6

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