Class Dt


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

The dt element represents the term, or name, part of a term-description group in a description list (dl element). It is used to mark up the term that is being defined or described in a description list. The dt element can contain any flow content and is typically followed by one or more dd elements that provide the definition or description for the term.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple term Dt simple = dt("HTML"); // Term with styling Dt styled = dt("CSS") ._class("term"); // Term with complex content Dt complex = dt( "JavaScript", span()._class("abbrev").children(" (JS)") ); // Term with links Dt withLinks = dt( "Web Standards", a("/standards", " (Learn More)") ); // Term with ID Dt withId = dt("HTML") .id("html-term"); // Term with styling Dt styled2 = dt("API") .style("font-weight: bold; color: blue;"); // Term with multiple elements Dt multiple = dt( "Responsive Design", span()._class("new").children(" (New)"), span()._class("popular").children(" (Popular)") );

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

See Also:
  • Constructor Details

    • Dt

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

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