HTML

Deleted Text


Deleted text in HTML is used to indicate content that has been removed from a document. It is typically rendered with a strikethrough by default, but the visual presentation can be customized using CSS.

 

Using the <del> Tag

The <del> tag is used to mark up text that has been deleted from a document.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Deleted Text Example</title>
</head>
<body>
    <p>This is some <del>deleted text</del>.</p>
    <p>Another example: <del>Removed content here</del>.</p>
</body>
</html>

 

Key Points

  1. Semantic Meaning: Use the <del> tag to semantically indicate that the text has been deleted from the document.