Class Dfn


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

The dfn element represents the defining instance of a term. It is used to mark up the first occurrence of a term that is being defined in the document, making it clear to both users and search engines that this is the definition of the term. The dfn element can contain the term being defined, and the definition is typically provided in the surrounding context or in a related dd element.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple definition Dfn simple = dfn("HTML"); // Definition with styling Dfn styled = dfn("CSS") ._class("term"); // Definition in a sentence P sentence = p( "The ", dfn("DOM"), " represents the structure of a web page." ); // Definition with complex content Dfn complex = dfn( "JavaScript", span()._class("abbrev").children(" (JS)") ); // Definition with title Dfn withTitle = dfn("HTML") .title("HyperText Markup Language"); // Definition with ID Dfn withId = dfn("CSS") .id("css-term"); // Definition with styling Dfn styled2 = dfn("API") .style("font-style: italic; color: blue;");

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

See Also: