Summary -

In this topic, we described about the <del> tag along with detailed example.

Used for editorial deletion. <del> tag represents the deleted text. <del> tag used to markup the deleted text rather than just being deleted. <del> tag markup the text as strike through the text.

Markup of deleted text can be useful in determining differences between multiple versions. The tag can be specified like <del></del> with the "deleted" text inserted between the opening and closing tags. <del> element is nested element.

Syntax -

<del>.. text here.. </del>

Optional Attributes -

AttributeDescriptionValues
citeSpecifies the description link which can describe about the deletion.URL.
datetimeSpecifies the deletion date and time.This is optional.YYYY-MM-DDThh:mm:ssTZD

Example -

<!DOCTYPE html>
<html>
	<head>
		<title>del tag text example.. </title>
	</head>
	<body>
		<p>This is <del>deleted</del> text</p>
	</body>
</html>

Output -

This is deleted text