pub struct Cite;Expand description
The <cite> element - citation or reference to a creative work.
§Purpose
The <cite> element represents a reference to a creative work such as a book, article,
movie, song, or other cited work. It should contain the title of the work.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Citing book titles
- Referencing articles or papers
- Mentioning movies, songs, or artworks
- Legal case citations
§Key Attributes
- Global attributes only
§Example
<p>As described in <cite>The Great Gatsby</cite>, the American Dream...</p>
<p>According to the research in <cite>Nature</cite> journal...</p>
<blockquote>
<p>To be or not to be...</p>
<footer>— <cite>Hamlet</cite> by William Shakespeare</footer>
</blockquote>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Cite
impl HtmlElement for Cite
impl<T: PhrasingContent> CanContain<T> for Cite
impl CanContain<Text> for Cite
impl FlowContent for Cite
impl PalpableContent for Cite
impl PhrasingContent for Cite
Auto Trait Implementations§
impl Freeze for Cite
impl RefUnwindSafe for Cite
impl Send for Cite
impl Sync for Cite
impl Unpin for Cite
impl UnwindSafe for Cite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more