Mark deletions and insertions with del and ins HTML tags (multilanguage support)

Good blogging practice recommends to mark deletions or insertions after publication. HTML provides for this purpose del and ins tag. These tags can be styled. But it isn't that simple. Removing a text-decoration such as line-through in a CSS :before meta class is unfortunately not possible. This, is really counter-intuitive, since font-style does not have this limitation.

Additionally, this solution supports multiple languages.

Here's my example:

This is deleted and inserted text.

This is <del datetime="25.08.2012">deleted</del> and <ins datetime="25.08.2012">inserted</ins> text.

Here is how to make it.

Subscribe to HTML