Class Cite<T extends Cite<T>>


public class Cite<T extends Cite<T>> extends PhrasingContentElement<T>
Represents an HTML <cite> element for citing creative works.

The Cite element defines the title of a creative work (e.g., a book, a song, a movie, a painting, a sculpture, etc.). Browsers typically render cite elements in italic.

Features:

  • Semantic markup for work titles
  • Typically rendered in italic
  • Improves document semantics and accessibility
  • Should contain work title, not author name

Usage:


 Paragraph p = new Paragraph();
 p.addChild(new Text("My favorite book is "));
 p.addChild(new Cite("To Kill a Mockingbird"));
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Cite

      public Cite()
      Constructs an empty <cite> element.
    • Cite

      public Cite(String text)
      Constructs a <cite> element with text content.
      Parameters:
      text - the title of the creative work