Deleted Element Tutorial
<del>
Introductory Text
The del element identifies deleted text.
- Start tag:
<del>- End tag:
</del>
Use Examples
- Example [Basic (HTML 4)]:
-
‛Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves,And the mome raths outgrabe. - Code [HTML]:
-
<p><del>‛Twas brillig, and the slithy toves Did gyre and gimble in the wabe: » All mimsy were the borogoves,</del> And the mome raths outgrabe.</p>
- Example [Basic (HTML 5)]:
-
‛Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves,And the mome raths outgrabe. - Code [HTML]:
-
<p><del datetime="2009-10-31T12:05:25Z" cite="/html-elements/groups/preformatted-element" » title="Edit: The following section was found wanting">‛Twas brillig, and the slithy toves Did gyre » and gimble in the wabe: All mimsy were the borogoves,</del> And the mome raths outgrabe.</p>
- Example [HTML 5 (CSS)]:
-
‛Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves,And the mome raths outgrabe. - Code [HTML]:
-
<p><del class="redacts" datetime="2009-10-31T12:05:25Z" cite="/html-elements/groups/preformatted-element" » title="Edit: Redacted">‛Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the » borogoves,</del> And the mome raths outgrabe.</p> - Code [CSS]:
-
.redacts { color:#000; background-color:#000; }
Content Model/Assigned Attributes
- Element-Type:
- Text-Level [HTML 4.01]
- Transparent [HTML 5]
- Attributes:
</del>
