HTML CSS examples for HTML Tag:del
del element marks deleted text.
The del Element summary
Item | Value |
---|---|
Element | del |
Local Attributes | cite, datetime |
Tag Style | Start and end tag |
New in HTML5 | Yes |
Changes in HTML5 | N/A |
Style Convention
del {
text-decoration: line-through;
}
The cite attribute specifies a URL to a document that explains why the text was removed.
The datetime attribute specifies when the modification was made.
You can see the del element in use in the following code.
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <p> <del>this is a test</del> </p> </body><!--from ww w .j a v a2s.c om--> </html>