Skip to: content, navigation

by Ian Lloyd

s (HTML element)

Spec
Depr. Empty Version
Yes No HTML 3
Browser support full matrix
IE5.5+ FF1+ Saf1.3+ Op9.2+
Full Full Full Full

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>
Type
inline element
Contains
inline elements only
Contained by
block-level elements, inline elements

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 of s element

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

IE5.5Full
6.0Full
7.0Full
Firefox1.0Full
1.5Full
2.0Full
Safari1.3Full
2.0Full
3.0Full
Opera9.2Full
9.5Full

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.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters