<strike>

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

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 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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
strike
Yes
12
Yes
Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.
Yes
Yes
Yes
Yes
Yes
Yes
Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.
Yes
Yes
Yes

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–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike