Switch to full style
HTML code examples
Post a reply

ins vs del tag

Tue Dec 20, 2011 3:48 pm

ins vs del tag , difference between ins(insert) and del(delete) html tags.
Code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>ins vs del tag</title>
<
style type='text/css'>

del {
    color:#655798;
}
ins {
    color:#FF4322;
}
</
style>

    </head>
    <body>
        <h1><ins>ok</ins> <del>delete </del> ok</h1>
    </body>
</
html>

 


Code:


<html>
<
head>
<
title>Insert and Delete marks</title>
</
head>
<
body>

<
div >Insert and Delete marks</div>
<
div >

<
del datetime="2011-11-14T03:31:11-02:00"><h1>old text</h1></del>
<
ins><h2>new text</h2></ins>
<
p>changes : 
<ins datetime="2011-03-04T11:13:00-25:03"
title="text inserted by msi.">
new text.</ins>
</
p>

</
div>

</
body>
</
html>

 




Post a reply