Web/HTML/Element/strike

From Get docs

Obsolete since HTML5This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.


The HTML <strike> element (or HTML Strikethrough Element) places a strikethrough (horizontal line) over text.

Usage note: This element is deprecated in HTML 4 and XHTML 1, and obsoleted in HTML5. If semantically appropriate, i.e., if it represents deleted content, use <del> instead. In all other cases use <s>.


DOM interface HTMLElement

Attributes

This element includes the global attributes.

Example

&lt;strike&gt;:  <strike>Today's Special: Salmon</strike> SOLD OUT<br />
&lt;s&gt;:  <s>Today's Special: Salmon</s> SOLD OUT

The result of this code is:

Specifications

Specification Status Comment
HTML5The definition of '<strike>' in that specification. Recommendation Make obsolete in favor of <del> and <s>.
HTML 4.01 SpecificationThe definition of '<strike>' in that specification. Recommendation Make deprecated in favor of <del> and <s>.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

strike

Deprecated'

Chrome

Full support Yes

Edge

Full support 12

Firefox Full support Yes

Notes'

Full support Yes

Notes'

Notes' Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
Deprecated. Not for use in new websites.'
Deprecated. Not for use in new websites.
See implementation notes.'
See implementation notes.


See also

  • The <s> element.
  • The <del> element should be used if the data has been deleted.
  • The CSS text-decoration property can be used to style text with a strikethrough.