pub struct Q;Expand description
The <q> element - inline quotation.
§Purpose
The <q> element represents a short inline quotation. Browsers typically add
quotation marks automatically. For longer block quotes, use <blockquote>.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Short inline quotations
- Quoted phrases within sentences
- Referenced statements
§Key Attributes
cite: URL of the source of the quotation- Global attributes
§Example
<p>She said, <q>I'll be there at 5pm</q>, and left.</p>
<p>The motto is <q>Quality over quantity</q>.</p>
<p>As Einstein said, <q cite="https://example.com">Imagination is more
important than knowledge</q>.</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Q
impl HtmlElement for Q
impl<T: PhrasingContent> CanContain<T> for Q
impl CanContain<Text> for Q
impl FlowContent for Q
impl PalpableContent for Q
impl PhrasingContent for Q
Auto Trait Implementations§
impl Freeze for Q
impl RefUnwindSafe for Q
impl Send for Q
impl Sync for Q
impl Unpin for Q
impl UnwindSafe for Q
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