Class Cite


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

The cite element represents the title of a work (e.g., a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case report, a computer program, a web site, a web page, a blog post or comment, a forum post or comment, a tweet, a written or oral statement, etc.). It is used to mark up the title of a referenced work, making it clear to both users and search engines what is being cited.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple citation Cite simple = cite("The Great Gatsby"); // Citation with styling Cite styled = cite("To Kill a Mockingbird") ._class("book-title"); // Citation in a sentence P sentence = p( "As mentioned in ", cite("The Art of War"), ", strategy is key to success." ); // Citation with link Cite withLink = cite( a("/books/1984", "1984") ); // Multiple citations P multiple = p( "Several works discuss this topic: ", cite("Book A"), ", ", cite("Book B"), ", and ", cite("Book C"), "." ); // Citation with author P withAuthor = p( "According to ", strong("John Doe"), " in ", cite("The Future of Technology"), ", we are entering a new era." );

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

See Also: