strike (HTML element)

Spec
Depr. Empty Version
Yes No HTML 4
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

<strike>
</strike>

Description

The strike element will create a horizontal strike (or line) straight through any enclosed text and white space. It provides no semantic meaning about the text affected (thus it’s similar to b or i in that respect).

If the intention when using strike is to signify a real change to the document, then the appropriate markup to use is a combination of the del element and ins elements.

Normally, though, this element is used for purely presentational reasons rather than document change logging. It is used even more frequently for the purposes of a cheep gag - saying something and intentionally leaving it on screen, but with a strike-through for comedic effect.

The strike element replaces the s element which was defined in HTML 3 but dropped in HTML 3.2. Both s and strike are deprecated in HTML4.

The example shown would render as follows:

Example of strike element

Example

strike being used to scrub out a person’s initial impression of someone:

<p><strike>The guy is a fool.</strike> The guy is an absolute
genius. What was I thinking?</p>

Use this for…

You may use this element as a typographical convention for when you intentionally say something, but then say the opposite and wish for both to be seen. Note that using this will cause your page to be invalid in HTML 4.1/XHTML 1, 1.1. If the strikethrough is purely for presentational effect, you should use CSS to style the affected text instead of using this element.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

The strike element has full browser support.

User-contributed notes

Related Products