HTML <s> and <strike> tags
The s and strike elements are deprecated.
Example
Strikethrough text can be marked up as follows:
<p>Version 2.0 is <s>not yet available!</s> now available!</p>
<p>Version 2.0 is <strike>not yet available!</strike> now available!</p> |
Try it yourself!
|
Definition and Usage
The <s> and <strike> tags defines strikethrough text.
Browser Support
The <s> and <strike> tags are supported in all major browsers.
Differences Between HTML and XHTML
The <s> and <strike> elements were deprecated
in HTML 4.01, and are not supported in XHTML 1.0 Strict DTD.
Tips and Notes
Tip: Use the del element instead!
Standard Attributes
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
onclick, ondblclick, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup |
For a full description, go to Event Attributes.
|
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|