Syntax | <STRIKE>...</STRIKE> |
---|---|
Attribute Specifications | |
Contents | Inline elements |
Contained in | Inline elements, block-level elements |
The STRIKE element, deprecated in HTML 4, suggests that text be rendered with a strike-through style. In many cases, use of a phrase element such as DEL is more appropriate since such elements express the meaning of the text more clearly. However, since DEL is new in HTML 4.0 and not supported in old browsers, STRIKE could be useful in combination with DEL, as in the following example:
The latest version of HTML recommended by the W3C is HTML <DEL DATETIME="1997-12-19T00:00:00-05:00"><STRIKE>3.2</STRIKE></DEL> <DEL DATETIME="1999-12-25T00:00:00-05:00"><STRIKE>4.0</STRIKE></DEL> <INS DATETIME="1999-12-25T00:00:00-05:00">4.01</INS>.
If DEL is not a suitable structure, style sheets should be used to complement or replace instances of STRIKE. CSS1 provides the text-decoration property for strike-through text.