Class H5


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

The h5 element represents a fifth-level heading in a document or section. It is used to mark up subsections that are hierarchically below h4 elements. The h5 element is typically used to organize content into smaller subsections and is important for creating a logical document structure. It is typically rendered in a smaller font size than h4 but larger than h6 elements.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple sub-sub-subsection heading H5 simple = h5("Connection Settings"); // H5 with styling H5 styled = h5("Timeout Configuration") ._class("detail-heading"); // H5 with complex content H5 complex = h5( "5.1 ", strong("Connection Pool Settings"), " ", em("(Optional)") ); // H5 with ID H5 withId = h5("SSL Configuration") .id("ssl-config"); // H5 with styling H5 styled2 = h5("Additional Parameters") .style("color: #aaa; font-size: 0.9em;"); // H5 with multiple elements H5 multiple = h5( "5.1.1 ", span()._class("param-title").children("Max Connections"), " ", small("(Default: 10)") ); // H5 with links H5 withLinks = h5( "See: ", a("/docs/ssl").children("SSL Documentation") );

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

See Also:
  • Constructor Details

    • H5

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

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