Class H3


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

The h3 element represents a third-level heading in a document or section. It is used to mark up subsections that are hierarchically below h2 elements. The h3 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 h2 but larger than h4 elements.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple subsection heading H3 simple = h3("Basic Configuration"); // H3 with styling H3 styled = h3("Advanced Settings") ._class("subsection-title"); // H3 with complex content H3 complex = h3( "Step 3: ", strong("Database Setup"), " ", em("(Optional)") ); // H3 with ID H3 withId = h3("Troubleshooting") .id("troubleshooting"); // H3 with styling H3 styled2 = h3("Common Issues") .style("color: #888; margin-top: 20px;"); // H3 with multiple elements H3 multiple = h3( "3.1 ", span()._class("step-title").children("Installation"), " ", small("(5 minutes)") ); // H3 with links H3 withLinks = h3( "See also: ", a("/docs/faq").children("Frequently Asked Questions") );

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

See Also:
  • Constructor Details

    • H3

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

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