{{ Obsolete_header() }}
Summary
The HTML Strikethrough Element (<strike>
) renders text with a strike-through, or a line through it.
Usage Note: As all purely styling element, {{ HTMLElement("strike") }} has been deprecated in HTML 4 and XHTML 1, and obsoleted in HTML5. If semantically appropriated, i.e. if it represents deleted content, use the {{ HTMLElement("del") }} instead; in all other cases use a {{ HTMLElement("span") }} element and style it with the CSS {{ cssxref("text-decoration") }} property, with the
line-through
value.Attributes
This element has no other attributes than the global attributes, common to all elements.
DOM interface
This element implements the {{domxref('HTMLElement')}} interface.
Implementation note: up to Gecko 1.9.2 inclusive, Firefox implements the {{domxref('HTMLSpanElement')}} interface for this element.
Example
<strike>Today's Special: Salmon</strike> NO LONGER AVAILABLE<br /> <span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT
Result
Today's Special: Salmon NO LONGER AVAILABLE
Today's Special: Salmon SOLD OUT
See Also
- The {{ HTMLElement("s") }} element, alter ego of the {{ HTMLElement("strike") }} element and, like it, obsolete.
- The {{ HTMLElement("del") }} element to be used instead if the data has been deleted.
- The CSS {{ cssxref("text-decoration") }} property to be used to achieve the former visual aspect of the {{ HTMLElement("strike") }} element.
{{ HTML:Element_Navigation() }}