1. Technology



S Description:

The S tag encloses text written with a line through it, called strikeout.

This tag has been deprecated in favor of the text-decoration CSS style property.

S Web Browser Support:

HTML Versions

S Attributes:

S End Tag:


S Contents:

Text. The following tags are valid within the S tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

S Valid Context:

The STRIKE tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

S Usage:

Strikeout Text

<s>This text is crossed out.</s> And this text is not.

Use CSS instead:

<span style="text-decoration:line-through;">This text is crossed out.</span> And this text is not.

S Special Notes:

  • The S tag has been deprecated in favor of CSS. It is best to use the text-decoration style property instead of the S tag.
  • The S tag has the exact same properties and effects as the STRIKE tag.

More S Information:

©2014 About.com. All rights reserved.