Back to Content

Index

files/en-us/web/html/reference/elements/strike/index.md

latest1.2 KB
Original Source

{{deprecated_header}}

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 {{HTMLElement("del")}} instead. In all other cases use {{HTMLElement("s")}}.

Attributes

This element includes the global attributes.

Examples

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

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

Result

{{EmbedLiveSample("Example")}}

Technical summary

<table class="properties"> <tbody> <tr> <th scope="row">DOM interface</th> <td>{{DOMxRef("HTMLElement")}}</td> </tr> </tbody> </table>

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The {{HTMLElement("s")}} element.
  • The {{HTMLElement("del")}} element should be used if the data has been deleted.
  • The CSS {{CSSxRef("text-decoration")}} property can be used to style text with a strikethrough.