pub struct Blockquote;Expand description
The <blockquote> element - block quotation.
§Purpose
The <blockquote> element represents a section that is quoted from another source.
It’s used for longer quotations that span multiple lines or paragraphs, as opposed
to inline quotes which use <q>.
§Content Categories
- Flow Content
- Palpable Content
§Permitted Content Model
- Flow content
§Common Use Cases
- Long quotations from other sources
- Testimonials and reviews
- Excerpts from books or articles
- Citations in academic or professional writing
§Key Attributes
cite: URL of the source document or message- Global attributes
§Example
<blockquote cite="https://www.example.com/article">
<p>The future belongs to those who believe in the beauty
of their dreams.</p>
<footer>— Eleanor Roosevelt</footer>
</blockquote>
<p>As the specification states:</p>
<blockquote>
<p>The blockquote element represents content that is quoted
from another source.</p>
</blockquote>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Blockquote
impl HtmlElement for Blockquote
impl<T: FlowContent> CanContain<T> for Blockquote
impl CanContain<Text> for Blockquote
impl FlowContent for Blockquote
impl PalpableContent for Blockquote
Auto Trait Implementations§
impl Freeze for Blockquote
impl RefUnwindSafe for Blockquote
impl Send for Blockquote
impl Sync for Blockquote
impl Unpin for Blockquote
impl UnwindSafe for Blockquote
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