pub struct S;Expand description
The <s> element - strikethrough (no longer accurate).
§Purpose
The <s> element represents contents that are no longer accurate or no longer relevant.
It’s typically rendered with a strikethrough line. Use <del> for indicating deletions.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Showing outdated prices or information
- Indicating obsolete content
- Sale prices (showing old price crossed out)
- Deprecated features or information
§Key Attributes
- Global attributes only
§Example
<p>Price: <s>$99.99</s> $79.99 (on sale!)</p>
<p><s>Meeting at 3pm</s> Meeting rescheduled to 4pm</p>
<p><s>This feature is experimental</s> Now stable and recommended</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for S
impl HtmlElement for S
impl<T: PhrasingContent> CanContain<T> for S
impl CanContain<Text> for S
impl FlowContent for S
impl PalpableContent for S
impl PhrasingContent for S
Auto Trait Implementations§
impl Freeze for S
impl RefUnwindSafe for S
impl Send for S
impl Sync for S
impl Unpin for S
impl UnwindSafe for S
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