s (HTML element)
| Depr. | Empty | Version |
|---|---|---|
| Yes | No | HTML 3 |
| IE5.5+ | FF1+ | SA1.3+ | OP9.2+ | CH2+ |
|---|---|---|---|---|
| Full | Full | Full | Full | Full |
Syntax
Description
The s is
identical in purpose to the strike element (please refer
to the entry for that element for description and usage).
The example shown would render as follows:

Example
s being used to
scrub out a person’s initial impression of someone:
<p><s>The guy is a fool.</s> 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
s element has full browser support (among those listed
above), but is deprecated and therefore should no longer be used. This
element was first introduced in HTML 3.0, but was not carried through to
HTML 3.2. Both s and strike are
deprecated in HTML4.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.