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
i in that respect).
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.
strike element replaces the
s element which was defined in
HTML 3 but dropped in HTML 3.2. Both
strike are deprecated in HTML4.
The example shown would render as follows:
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.
strike element has full browser support.