Class Dfn<T extends Dfn<T>>


public class Dfn<T extends Dfn<T>> extends PhrasingContentElement<T>
Represents an HTML <dfn> element for defining terms.

The Dfn element represents the defining instance of a term. The nearest parent paragraph, description list grouping, or section should contain the definition of the term.

Features:

  • Semantic markup for term definitions
  • Typically rendered in italic
  • Indicates first or defining use of term
  • Improves document semantics

Usage:


 Paragraph p = new Paragraph();
 p.addChild(new Dfn("HTML"));
 p.addChild(new Text(" is a markup language for creating web pages."));
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Dfn

      public Dfn()
      Constructs an empty <dfn> element.
    • Dfn

      public Dfn(String text)
      Constructs a <dfn> element with the term text.
      Parameters:
      text - the term being defined