Marking Changed Text

Another set of logical tags that you might find useful are the ones for marking text that has changed from one version to the next. Lawyers and bloggers do this all the time.

To mark newly inserted text:


Type <ins>.


Type the new text.


Type </ins>.

To mark deleted text:


Place the cursor before the text you wish to mark as deleted.


Type <del>.


Place the cursor after the text you wish to mark as deleted.


Type </del>.

Figure 4.17. You have to be a little bit careful to include the associated punctuation with the ins and del elements.

Figure 4.18. The changes become quite apparent.


  • Text marked with the ins tag is generally underlined. Since links are often underlined as well (if not in your site, in many others), this may be confusing to visitors. You may want to add an explanation at the beginning of your page and/or use styles to change how inserted passages (or links) are displayed (see page 151).

  • Text marked with the del element is generally stricken out. Why not just erase it and be done with it? Striking it out makes it easy for others to see what has changed.

  • You can also use styles to underline and strike out text (see page 168). The advantage of the ins and del elements is that they identify the text as being inserted or deleted, and not just underlined or stricken.

HTML, XHTML, & CSS(c) Visual QuickStart Guide
HTML, XHTML, and CSS, Sixth Edition
ISBN: 0321430840
EAN: 2147483647
Year: 2004
Pages: 340

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: