<del> Tag Syntax
<body> ... flow content expected ... <del cite="changelog-URL" datetime="yyyy-mm-ddThh:mm:ss+zz:00"> ... flow content ... </del> ... ... phrasing content expected ...<del cite="changelog-URL" datetime="yyyy-mm-ddThh:mm:ss+zz:00">... ... phrasing content ...</del>... ... </body>
Rules for coding the HTML del element
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the del element for deleted text and/or HTML code where either flow content is expected or phrasing content is expected.
- Begin the del element with a starting <del> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Optionally code a
cite
attribute with the URL of a document that provides an explanation for the change. - Optionally code a
datetime
attribute with the date or date and time of the change. - Include any other global attributes inside the starting <del> tag as appropriate.
- Inside the del element, include the text or other phrasing content that is being deleted. If the
<del>
tag is coded where flow content is permitted, then the inner HTML of the<del>
tag may contain flow content also. - End the del element with a matching
</del>
closing tag.
Content Model
Content of the a element
When coded in flow content
When coded in flow content, the content of the del element can include HTML comments, text content and any HTML tags that can be used in flow content.
When coded in phrasing content
When coded in phrasing content, the content of the del element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.