Chapter 3.8: Changing Content
If you ever decide to preview over a document someone made, but you don't want to just delete their work, you want to show how it changed but at the same time you don't want to have to write a changelog. Well HTML makes that simple! Just use the <del> tag between whatever you deleted, and the <ins> tag to whatever you inserted. Get it? <del> = Delete, <ins> = insert. HTML is so simple when you get down to it.
So...
<p>My idea for a book title is <del>1900 Cats</del><ins> 1800 Cats</ins></p>
Will then make:
So...
<p>My idea for a book title is <del>1900 Cats</del><ins> 1800 Cats</ins></p>
Will then make:
My idea for a book title is 1900 Cats 1800 Cats
Now when you want something crossed out to show a new value, say a price that has gone on sale, you use the <s> tag.
So...
<p>You can buy a Laptop Now for Only <s>$400</s> $300 !</p>
Will then make:
So...
<p>You can buy a Laptop Now for Only <s>$400</s> $300 !</p>
Will then make:
You can buy a Laptop Now for Only $400 $300 !