In this discussion we will inform you about the use and implementation of <del> tag .
In this discussion we will inform you about the use and implementation of <del> tag .In this discussion we will inform you about the use and implementation of <del> tag . The <del> tag is used for deleting some contents from the document and the changes will be shown in the new version of the document, what contents are changes with which content. On the deleted text browser normally draws a line horizontally in the middle of the text and a new inserted text is underline to differentiate changes in the document versions. The <del> tag is used in conjuction with <ins> tag.
The syntax for this tag is as follows:
<del> Text Here</del> |
Specific attributes:
This tag have two specific attributes:
cite="value" This attribute specifies the URL which gives resaon for deleting the text.
datetime="yyyy-mm-dd" This specify the date and time of changing in the text.
Example: Del_tag.html.
<!DOCTYPE html> <html> <head> <title>Example of del Tag</title> </head> <body> <p>The <del><B>some old </B></del> <ins><B>most of the older </B></ins> version browser's doesn't support html5.<br><br> Here it is clear that how does del work?</p> </body> </html> |
Output:
Difference between HTML5 and HTML4
There is no difference in this attribute in both the versions.