Problem Statement
Which tags are used to show deleted and inserted text in a document?
Explanation
The del tag shows deleted text with a strikethrough, while the ins tag shows inserted text, typically with an underline. These tags are useful for showing edits or changes to documents. The del tag marks text that has been removed from the document, and ins marks text that has been added. Both tags can include datetime and cite attributes to specify when the change was made and why. This is particularly useful for collaborative documents, legal documents, or version control. These tags are semantic, meaning they carry meaning about the content changes, not just visual styling. They help users and search engines understand document revisions.
Code Solution
SolutionRead Only
<p>The meeting is on <del>Monday</del> <ins>Tuesday</ins>.</p> <p>Price: <del>$100</del> <ins>$80</ins></p> <p> <del datetime="2025-01-15">Old information</del> <ins datetime="2025-01-20">Updated information</ins> </p>