Text Content
HTML <ins> element
Marks content added to a document. cite and datetime may describe the change. Inserted content can carry datetime and cite metadata. Keep the resulting document's surrounding content model valid and use visible explanations if a change history matters. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<ins>Added text</ins>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| cite | URL | Points to the source of a quotation or the explanation of an edit. Browsers generally do not display this URL automatically; provide visible attribution when helpful. |
| datetime | machine-readable date or time | Provides a machine-readable value for time, or a date/time for an insertion or deletion. Use the format appropriate to the element, not an arbitrary localized date string. |
Return Value
HTMLModElement
Content model: Transparent content; follow the parent context.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <p> Price: <del>$20</del> <ins>$15</ins> . </p> </body></html>