Class H6


@Bean(typeName="h6") public class H6 extends HtmlElementMixed
DTO for an HTML <h6> element.

The h6 element represents the lowest level heading in a document or section. It is used to mark up subsections that are hierarchically below h5 elements. The h6 element is typically used to organize content into the smallest subsections and is important for creating a logical document structure. It is typically rendered in the smallest font size among all heading elements and is often used for fine-grained content organization.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple lowest-level heading H6 simple = h6("Connection Timeout"); // H6 with styling H6 styled = h6("Retry Attempts") ._class("micro-heading"); // H6 with complex content H6 complex = h6( "6.1 ", strong("Connection Pool Size"), " ", em("(Default: 5)") ); // H6 with ID H6 withId = h6("Keep-Alive Settings") .id("keep-alive"); // H6 with styling H6 styled2 = h6("Advanced Options") .style("color: #bbb; font-size: 0.8em; font-weight: normal;"); // H6 with multiple elements H6 multiple = h6( "6.1.1 ", span()._class("micro-title").children("Max Retries"), " ", small("(Range: 1-10)") ); // H6 with links H6 withLinks = h6( "Ref: ", a("/docs/connection").children("Connection Guide") );

The following convenience methods are provided for constructing instances of this bean:

See Also:
  • Constructor Details

    • H6

      public H6()
      Creates an empty H6 element.
    • H6

      public H6(Object... children)
      Creates an H6 element with the specified child nodes.
      Parameters:
      children - The child nodes.
  • Method Details