html element
`<strike>` HTML strikethrough element
The <strike> HTML element places a strikethrough (horizontal line) over text.
[!WARNING] This element is deprecated in HTML 4 and XHTML 1, and obsoleted in the HTML Living Standard. If semantically appropriate, i.e., if it represents deleted content, use
<del>instead. In all other cases use<s>.
Attributes
This element includes the global attributes.
Examples
<strike>: <strike>Today's Special: Salmon</strike> SOLD OUT<br />
<s>: <s>Today's Special: Salmon</s> SOLD OUT
Result
Interactive exampleOpen the canonical MDN source to run this embedded demo.
Technical summary
| DOM interface | [`HTMLElement`](/firefox/mdn/api/htmlelement/) |
|---|
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The
<s>element. - The
<del>element should be used if the data has been deleted. - The CSS
text-decorationproperty can be used to style text with a strikethrough.