Fandom

HTML & CSS Wiki

Strike

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 <strike></strike> element has been deprecated since HTML 4 in favor of the CSS text-decoration:line-through;. It is used to create a strike through text. It is now obsolete in HTML5. If it represents deleted content, use the <del> instead; in all other cases use the CSS text-decoration property. This element is synonymous to the <s> element, which produces the same result.

Attributes

Global Attributes

See Global HTML Attributes.


HTML example:

<strike>Text on strike</strike>

which will produce: Text on strike


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.