• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Basic (X)HTML Formatting > Marking Changed Text

Marking Changed Text

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

To mark newly inserted text

1.
Type <ins>.

2.
Type the new text.

3.
Type </ins>.

To mark deleted text

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

2.
Type <del>.

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

4.
Type </del>.

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

<body>

<p><big>I promise to do all of my homework,<ins>
all of my chores,</ins> clean the cat litter, and not
watch more than <del>six</del> a half
hour<del>s</del> of tv.</big></p>



<p>signed</p>

Figure 4.22. The changes become quite apparent.


Tips

  • 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 157).

  • 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 174). 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.


  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint