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 -

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>
		<title>del tag text example.. </title>
		<p>This is <del>deleted</del> text</p>

Output -

This is deleted text