pub struct Dfn;Expand description
The <dfn> element - defining instance of a term.
§Purpose
The <dfn> element represents the defining instance of a term. The paragraph,
description list group, or section that contains the <dfn> element should also
contain the definition of the term.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content (but must not contain another
<dfn>element)
§Common Use Cases
- Defining technical terms in glossaries
- First occurrence of a term being defined
- Introducing new terminology
- Academic or technical documentation
§Key Attributes
title: Full term being defined (if abbreviation is in content)- Global attributes
§Example
<p><dfn>HTML</dfn> (HyperText Markup Language) is the standard
markup language for web pages.</p>
<p>A <dfn id="def-widget">widget</dfn> is a small application
that provides specific functionality.</p>
<p><dfn><abbr title="Cascading Style Sheets">CSS</abbr></dfn>
is used for styling web pages.</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Dfn
impl HtmlElement for Dfn
impl<T: PhrasingContent> CanContain<T> for Dfn
impl CanContain<Text> for Dfn
impl FlowContent for Dfn
impl PalpableContent for Dfn
impl PhrasingContent for Dfn
Auto Trait Implementations§
impl Freeze for Dfn
impl RefUnwindSafe for Dfn
impl Send for Dfn
impl Sync for Dfn
impl Unpin for Dfn
impl UnwindSafe for Dfn
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