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).
Transparent content model allows this when the parent accepts flow content.
Optional datetime timestamps the larger edit.
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>.
Compatibility
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 ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<ins>Widely supported
Bottom line: Safe to use for document revisions. Style thoughtfully so insertions stay clear without color-only cues.
Remember
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.
UA style
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.