HTML <del> Tag
Description
The <del>
HTML element is used to highlight text that has been deleted in the new version of the document. Such formatting allows you to track what changes in the text of the document were made. Browsers typically mark text in the <del>
container as strikethrough.
Properties
- Permitted Parents
- Any element that accepts phrasing content
- Content
- Any block, inline and text (but cannot contain block content when used as an inline element)
- Start/End Tags
- Start tag: required, End tag: required
Example
<p>My favorite color is <del>blue</del> <ins>green</ins>!</p>
Attributes
Attribute | Definition |
---|---|
cite | Specifies a URL to a document which explains why the text was deleted. |
datename | Specifies the date and time when the text was deleted. |
Global Attributes
The <del>
tag also supports the Global Attributes in HTML5
Event Attributes
The <del>
tag also supports the Event Attributes in HTML5
Browser Support
Desktop | |||||
Yes | Yes | Yes | 1 | Yes | Yes |
Tablets / Mobile | |||||
![]() |
|||||
Yes | Yes | 4 | Yes | Yes | Yes |
Last updated by CSSPortal on: 6th December 2019
HTML Tags
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdi
- bdo
- blockquote
- body
- br
- button
- canvas
- caption
- cite
- code
- col
- colgroup
- comment
- datalist
- dd
- del
- details
- dfn
- dialog
- div
- dl
- doctype
- dt
- em
- embed
- fieldset
- figcaption
- figure
- footer
- form
- h1
- h2
- h3
- h4
- h5
- h6
- head
- header
- hr
- html
- i
- iframe
- img
- input
- ins
- kbd
- keygen
- label
- legend
- li
- link
- map
- mark
- menu
- meta
- meter
- nav
- noscript
- object
- ol
- optgroup
- option
- output
- p
- param
- picture
- pre
- progress
- q
- rp
- rt
- ruby
- s
- samp
- script
- section
- select
- small
- source
- span
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- textarea
- tfoot
- th
- thead
- time
- title
- tr
- track
- u
- ul
- var
- video
- wbr