In HTML, the <del>
tag is used to mark text that has been deleted or removed from a document. This tag is useful for indicating changes made to a document, such as when editing or revising content. Here's a simple explanation with an example:
<!DOCTYPE html>
<html>
<head>
<title>My Document</title>
</head>
<body>
<p>This is some <del>deleted</del> text.</p>
</body>
</html>
In this example, the <del>
tag is used to wrap the word "deleted," indicating that it has been removed from the document. By default, browsers typically display deleted text with a strike-through style to visually indicate that it has been deleted. However, the appearance can be customized using CSS if desired.