Fandom

HTML & CSS Wiki

S

649pages on
this wiki
Add New Page
Comments0 Share

This deprecated, presentational element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.


The HTML <s></s> element has been deprecated since HTML 4 in favor of the CSS text-decoration:line-through;. It is now obsolete in HTML5. This element renders text with a line crossing them out, similar to the <strike> element. If it represents deleted text, use the <del> element instead.

Attributes

Global Attributes

See Global HTML Attributes.


HTML example:

<s>Text on strike</s>

That will produce: Text on strike


Using text-decoration...
<span style="text-decoration:line-through;">TEXT</span>

That produces: TEXT

See Also

External Links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.