Html Ins Tag

In the html <ins> tag is used to insert mark up text to html page. The Main difference between <del> tag and <ins> tag, if you will use <del> tag to display text with strike line and if you will use <ins> tag to display text with underline.

The <ins> tag optional attributes are cite, datetime and standard attributes are class ,dir ,id ,lang ,style ,title ,xml:lang and onclick ,ondblclick ,onmousedown, onmousemove ,onmouseout ,onmouseover ,onmouseup ,onkeydown ,onkeypress ,onkeyup.

Syntax:

<ins> ... </ins>

Example Code



My favorite animal is <del>dog</del> <ins>cat</ins>

Out Put:

My favorite animal is dog cat

In the above example <del> tag has been added to dog keyword and <ins> tag has been added to cat keyword.





Content