<del> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:del

Introduction

del element marks deleted text.

The del Element summary

ItemValue
Element del
Local Attributescite, datetime
Tag Style Start and end tag
New in HTML5Yes
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.

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials