Class Dd


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

The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element). It is used to provide the definition or description for the term that precedes it in a dt element. The dd element can contain any flow content and is typically used within a dl element to create definition lists, glossaries, or other term-description pairs.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple definition Dd simple = dd("A markup language used to create web pages."); // Definition with styling Dd styled = dd("A programming language for web development.") ._class("definition"); // Definition with complex content Dd complex = dd( "A ", strong("hypertext"), " markup language used to create ", em("web pages"), "." ); // Definition with multiple paragraphs Dd multiple = dd( p("A programming language that runs in web browsers."), p("It is commonly used for creating interactive web applications.") ); // Definition with links Dd withLinks = dd( "A ", a("/css", "styling language"), " used to describe the presentation of ", a("/html", "HTML"), " documents." ); // Definition with ID Dd withId = dd("A styling language for web documents.") .id("css-definition") .children("Cascading Style Sheets - a language for describing the presentation of web pages."); // Definition with styling Dd styled2 = dd("A server-side scripting language for web development.") .style("margin-left: 20px; color: #666;");

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

See Also:
  • Constructor Details

    • Dd

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

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