Strike Element Tutorial
<strike>
Introductory Text
The strike element renders strike-through style text.
[Note: This presentation element was developed before CSS; it has been deprecated in HTML 4.01 and obsoleted in HTML 5.]
- Start tag:
<strike>- End tag:
</strike>
Use Examples
- Example [Obsoleted]:
-
Nevermind reading this example: it’s obsolete. - Code [HTML]:
-
<p><strike>Nevermind reading this example: it’s obsolete.</strike></p>
- Example [Suggested (Deleted Element)]:
-
This text has been struck with thedelelement semantics and default browser rendering. - Code [HTML]:
-
<p><del datetime="1929-10-31T12:05:25Z">This text has been struck with the <code>del</code> » element semantics and default browser rendering.</del></p>
- Example [CSS]:
-
This text has been struck with CSS use.
- Code [HTML]:
-
<p class="struck">This text has been struck with <abbr>CSS</abbr> use.</p> - Code [CSS]:
-
.struck { text-decoration: line-through; }
Content Model/Assigned Attributes
- Element-Type:
- Text-Level
- Attributes:
</strike>
