pub struct Dt;Expand description
The <dt> element - description term.
§Purpose
The <dt> element represents the term or name part of a term-description group
in a description list (<dl>). It specifies the term being defined or described.
§Content Categories
- None (only valid as child of
<dl>or<div>within<dl>)
§Permitted Content Model
- Flow content (but no
<header>,<footer>, sectioning, or heading content descendants)
§Common Use Cases
- Term in a glossary
- Property name in metadata
- Question in FAQ
- Label in key-value pairs
§Key Attributes
- Global attributes only
§Example
<dl>
<dt>Name</dt>
<dd>John Doe</dd>
<dt>Email</dt>
<dd>john@example.com</dd>
<dt>What is HTML?</dt>
<dd>HTML is the standard markup language for web pages.</dd>
</dl>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Dt
impl HtmlElement for Dt
impl CanContain<Dt> for Dl
impl<T: PhrasingContent> CanContain<T> for Dt
impl CanContain<Text> for Dt
Auto Trait Implementations§
impl Freeze for Dt
impl RefUnwindSafe for Dt
impl Send for Dt
impl Sync for Dt
impl Unpin for Dt
impl UnwindSafe for Dt
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