W3cubDocs

/HTML

<strike>

Obsolete
This 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 <strike> (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>.

Attributes

This element includes the global attributes.

DOM interface

This element implements the HTMLElement interface.

Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.

Example

<strike>Today's Special: Salmon</strike> SOLD OUT<br />
<s>Today's Special: Salmon</s> SOLD OUT

The result of this code is:

Browser compatibility

Feature Chrome Edge Firefox Internet Explorer Opera Safari
Basic support Yes Yes Yes1 Yes Yes Yes
Feature Android webview Chrome for Android Edge mobile Firefox for Android IE mobile Opera Android iOS Safari
Basic support Yes Yes Yes Yes1 Yes Yes Yes

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

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.

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike