Friday, 4 November 2011

Indentifying Deleted and Inserted Text in HTML

In the process of editing and rewriting manuscripts, deleted text is displayed with a line through the middle (strikethrough), and newly added text is displayed as underlined. That way, the writers and editors of a document can clearly discern the changes that are being made. HTML’s <del></del> and <ins></ins> perform the same function, causing text to display as strikethrough or as underlined.

  • <del></del> The deleted text indicates (by a strikethrough) that the text has been deleted but left in the page.
  • <ins></ins > The inserted text element indicates new text has been inserted to the document.

Create an HTML file using the following code to test <del> and <ins>

<html>

<head>

<title>Deleted and inserted Text</title>

</head>

<body>

Text that are <del>Deleted</del> and <ins>Inserted.</ins>

</body>

</html>

No comments:

Post a Comment