The <ins> and <del> tags are used to show edits in the webpage documents.So respectively <del> tag used to define text that has been deleted and <ins> tag deine insert text in the document of a webpage . Browsers will normally strike a parentage(line) through deleted text and underline inserted text.Both of tags required end tag(</del>,</ins>).The text that is edited(either deleted or inserted) put inside opening and closing tags.

You can understand use of <ins> and <del> tag by a simple example:-

e.g.

<!DOCTYPE html>
<html>
<body>
<p>
The capital of India is <del>Kolkata</del> <ins>Delhi</ins>.
</p>
</body>
</html>


Result:-

The capital of India is Kolkata Delhi.



The capiatl of india earlier was kolkata and now it is delhi so we use del and ins tag to define these edits in webpage documents.


The following attributes can be set for both the <ins> and <del> tags:-

<ins> and <del> Tag Attributes

<ins cite="why.htm">specify the inserted reason</ins>
<ins datetime="2015-04-04T20:53:03Z">specify the time at inserted</ins>

Attribute Value Discription
cite URL Specifies a URL to a document that explains the reason of edited text (inserted/deleted)
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the text was edited.


Conclusion:--

So the <ins> and <del> tags are used to define edited text in a webpage document.

<ins> and <del> tag का उपयोग webpage के document में पुराने और नये changes को show करने के लिए किया जाता है जैसे की इंडिया की राजधानी पहले कोलकाता थी और अब दिल्ली हो गयी है और आप चाहते है की इंडिया की पुरानी और नयी दोनों राजधानियाँ webpage में show हो तो आप <ins>और <del> का उपयोग कर सकते है

0 comments:

Post a Comment