HTML Strikethrough (HTML Formatting Tags part 7)

১১/১৮/২০১১ ০৯:০৬:০০ AM | | 0 comments »

To place text onto your site that appears to be crossed out, we use the <del> tag.

HTML Code:

<p>This text is <del>scratched</del> out!</p>

Strikethrough:

This text is scratched out!

HTML - Check Off Tasks

Here's an example of a web developer checking off tasks as they are performed.

HTML Code:

<ol>
<li>Clean my room</li>
<li><del>Cook Dinner</del></li>
<li><del>Wash Dishes</del></li>
</ol>

To Do List:

  1. Clean my room
  2. Cook Dinner
  3. Wash Dishes