del ... ⁄del
HTML5 del element
The del element allows you to mark up removed (deleted) content. »video
About del
- is an optional element
- multiple del elements allowed per HTML5 document
Display & support del
- display in browser »video





Parents, children del
- del nested within elements »del parents
- elements nested within del »del children
»examples
Attributes del
- required: none
- optional: specific attributes, global attributes, event attributes
Syntax del
1 | <> ... </> »video |
Attributes and Values del (comma separated)
< | attribute | = | "attribute_value(s)" | > | Video | Examples |
---|---|---|---|---|---|---|
1. specific attributes | ||||||
1. | cite | = | URL | »video | <cite="filex.php"> ... <⁄ > | |
2. | datetime | = | YYYY-MM-DD YYYY-MM-DD hh:mmZ YYYY-MM-DD hh:mm+hh YYYY-MM-DD hh:mm+hh:mm YYYY-MM-DD hh:mm-hh YYYY-MM-DD hh:mm-hh:mm YYYY-MM-DD hh:mm:ssZ YYYY-MM-DD hh:mm:ss+hh YYYY-MM-DD hh:mm:ss+hh:mm YYYY-MM-DD hh:mm:ss-hh YYYY-MM-DD hh:mm:ss-hh:mm YYYY-MM-DDThh:mmZ YYYY-MM-DDThh:mm+hh YYYY-MM-DDThh:mm+hh:mm YYYY-MM-DDThh:mm-hh YYYY-MM-DDThh:mm-hh:mm YYYY-MM-DD hh:mm:ssZ YYYY-MM-DD hh:mm:ss+hh YYYY-MM-DD hh:mm:ss+hh:mm YYYY-MM-DD hh:mm:ss-hh YYYY-MM-DD hh:mm:ss-hh:mm YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss+hh YYYY-MM-DDThh:mm:ss+hh:mm YYYY-MM-DDThh:mm:ss-hh YYYY-MM-DDThh:mm:ss-hh:mm | »video | <datetime="2013-03-28T04:23:14Z"> ... <⁄ > | |
All Specific Attributes | ||||||
2. global attributes | ||||||
1. | accesskey | = | keyboard key | »img | <accesskey="h"> ... </ > | |
2. | class | = | class name | »html »img | <class="class_name"> ... </ > | |
3. | contenteditable | = | "", , true, false | »html | <contenteditable="true"> ... </ > | |
4. | contextmenu | = | menu id value | »html | <contextmenu="menu_id_value"> ... </ > | |
5. | data-* | = | value | - | <data-http-error="404"> ... </ > | |
6. | dir | = | ltr, rtl, auto | »html | <dir="ltr"> ... </ > | |
7. | draggable | = | true, , false | »img | <draggable="false"> ... </ > | |
8. | dropzone | = | copy, move, link, string:, file: | - | <dropzone="copy"> ... </ > | |
9. | hidden | = | "", , hidden | »html »img | <hidden="hidden"> ... </ > | |
10. | id | = | id name | »html »img | <id="unique_id_name"> ... </ > | |
11. | itemid | = | URL | - | - | |
12. | itemprop | = | string | »link »a | - | |
13. | itemref | = | string | - | - | |
14. | itemscope | = | "", , itemscope | - | - | |
15. | itemtype | = | absolute URL | - | - | |
16. | lang | = | language code | »html »head»title »img | <lang="en"> ... </ > | |
17. | spellcheck | = | "", , true, false | »html | <spellcheck="true"> ... </ > | |
18. | style | = | CSS property:value | »html »img | <style="color:red"> ... </ > | |
19. | tabindex | = | integer | »img | <tabindex="3"> ... </ > | |
20. | title | = | text | »html »link»style »abbr»dfn »img »meter | <title="html page"> ... </ > | |
21. | translate | = | "", yes, no | »html »img | <translate="yes"> ... </ > | |
All Global Attributes | ||||||
3. global event attributes | ||||||
1. | onclick | = | script | » list | <element onclick="script" > ... | |
2. | ondblclick | = | script | » list | <element ondblclick="script" > ... | |
All Event Attributes |
Video demonstration del element
HTML5 del element: mark up deleted content
min | video details |
---|---|
00:00 | video tutorial: del element, ins element |
00:04 | del element allows you to mark removed ⁄deleted content |
00:09 | ins element allows you to mark inserted content |
00:13 | let's say this paragraph has been published online (on www), and we need to apply a correction to it: instead of 'twice' to have 'once' |
00:21 | we need to mark 'twice' as removed content, using del element |
00:27 | and insert the new content, 'once', and mark it as inserted content using ins element |
00:37 | the paragraph is now correct and displays like this in browser |