HTML <ins> Tag

Beginner
5 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <ins> element marks a range of text that has been added (inserted) into a document — edits, corrections, and changelogs.

Pair it with <del> for removed text. Optionally add cite (URL explaining the change) and datetime (when it happened). Do not use <ins> only for green underlines — that is presentational CSS, not insertion semantics.

Baseline · Widely available.

Not deprecated. Stable across browsers since about July 2015 (and long before in practice).

HTML Syntax

syntax.html
<ins cite=" url" datetime="YYYY-MM-DD">added text</ins>

Both start and end tags are required. Content is transparent — you can wrap phrases or block content such as paragraphs.

Attributes

Besides global attributes, <ins> supports:

AttributeDescriptionTry it
citeURL of a resource that explains the change (ticket, minutes, commit notes)Try it
datetimeValid date or date-time string for when the insertion occurredTry it

Note: the cite attribute is a URL. The <cite> element is different — it marks the title of a work.

Global Attributes

The <ins> tag also supports the Global Attributes in HTML.

Live Preview

Switch revision patterns and see how <ins> (and <del>) render.

Real <ins> markup. Default UA style underlines inserted text.

Preview

Draft note: added this sentence.

Basic insert — underlined by default.

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Basic Inserted Text

Mark a phrase that was added to the document.

HTML
<p>
  Meeting notes:
  <ins>Bring printed handouts.</ins>
</p>
Try It Yourself

How It Works

  1. Wrap the added text in <ins>…</ins>.
  2. Browsers underline it by default to show the insertion.
  3. Meaning stays semantic even if you restyle the underline with CSS.
  4. Close the tag — both start and end tags are required.

Example 2 — cite and datetime

Record where the change is documented and when it happened.

HTML
<p>
  Price:
  <ins
    cite="https://example.com/tickets/42"
    datetime="2026-10-28"
  >
    $19
  </ins>
</p>
Try It Yourself

How It Works

  1. cite points to a URL that explains the edit.
  2. datetime uses a valid date (YYYY-MM-DD) or date-time string.
  3. Browsers do not show these as tooltips by default — they are for tools and scripts.
  4. Invalid datetime values mean the element has no associated timestamp.

Example 3 — Replace Text with del + ins

Show a removal and an insertion side by side.

HTML
<p>
  Status:
  <del>Draft</del>
  <ins>Published</ins>
</p>
Try It Yourself

How It Works

  1. <del> marks the old value (often struck through).
  2. <ins> marks the new value (often underlined).
  3. Keep both when you want a readable revision history in the page.
  4. Do not use <s> for edits — s is for no-longer-accurate content, not tracked deletions.

Example 4 — Block-Level Insertion

<ins> can wrap whole paragraphs when you insert a larger chunk.

HTML
<p>“You’re late!”</p>
<del>
  <p>“I apologize for the delay.”</p>
</del>
<ins datetime="2026-10-28">
  <p>“A wizard is never late …”</p>
</ins>
Try It Yourself

How It Works

  1. Wrap the added block (here a <p>) inside <ins>.
  2. Transparent content model allows this when the parent accepts flow content.
  3. Optional datetime timestamps the larger edit.
  4. Style block ins/del with CSS if default underline is too subtle for paragraphs.

Edge Cases & Pitfalls

Most mistakes mix up styling tags with real edit semantics.

semantics

Not a fancy underline

Use <u> only for special underlined meaning. Use CSS for decoration. Use ins for insertions.

cite

Attribute vs element

cite="" on ins is a URL. <cite> marks a work’s title — different jobs.

datetime

Use a valid date string

Values that cannot be parsed leave the insertion without a timestamp.

a11y

Do not rely on color alone

Default underline helps. If you restyle, keep a non-color cue (underline, “+” prefix, etc.).

vs s

s is not an edit log

<s> marks inaccurate content. Tracked deletions belong in <del>.

Browser Support

The <ins> element is core HTML in every major browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<ins>

Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera all support inserted-text markup with cite and datetime attributes.

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<ins> Widely supported

Bottom line: Safe to use for document revisions. Style thoughtfully so insertions stay clear without color-only cues.

Key Takeaways

  • Role: <ins> marks text that was added to the document.
  • Meta: optional cite (URL) and datetime document the change.
  • Pair with del: show removals and additions together for clear diffs.
  • Not decoration: avoid ins when nothing was actually inserted.

One line: use <ins> for real additions — optionally with cite and datetime.

Default CSS Settings

User agents typically underline inserted text:

default.css
ins {
  text-decoration: underline;
}

You may restyle (background, “+” markers), but keep a clear non-color cue for accessibility.

Frequently Asked Questions

The ins element marks text that was added to a document — useful for changelogs, edits, and revisions. Pair it with del for removed text.
cite is a URL that explains the change (ticket, minutes, commit). datetime is a machine-readable date or date-time for when the insertion happened.
No. u is for styled underlines with a special meaning (like misspelled words). ins means content was inserted; browsers often underline it by default, but the meaning is different.
Yes. Content is transparent — ins can wrap phrasing content or blocks such as paragraphs when used as flow content.
No. If there was no real insertion, use CSS or mark for highlight. Keep ins for actual added content.
Its implicit ARIA role is insertion, which helps assistive technologies announce added text when supported.

Next: isindex

See another obsolete form-related tag and what replaced it.

isindex tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful