HTML <ins> tag is used to represent the newly added text in an HTML document. It usually renders with an underline through the text, but it can be changed using CSS property.
The <ins> tag is more useful when it is used with the <del> element as it represents the part of the text that has been deleted and <ins> represent the part of the text that has been inserted to the document.
Syntax:
<ins>Insert the text.......</ins>
Following are some specifications about the HTML <ins> tag
Display | Inline |
Start tag/End tag | Both Start and End tag |
Usage | Semantics |
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML ins Tag</title>
</head>
<body>
<h2>Example of ins tag</h2>
<p>
If you will do <del>hard work </del> <ins>smart work</ins> then you will get success easily
</p>
</body>
</html>
Output:
Attribute
Tag-specific attribute
Attribute | Value | Description |
---|---|---|
cite | URL | It specifies the URL of the resource which explains the reason for the change. |
datetime | YYYYMMDD HH:MM:SS | It specifies the date and time of change. |
Global attribute
HTML <ins> tag supports the global attributes in HTML
Event attribute
HTML <ins> tag supports the event attributes in HTML.
Supporting Browsers
Element | Chrome | IE | Firefox | Opera | Safari |
<ins> | Yes | Yes | Yes | Yes | Yes |
Leave a Reply