Live Preview
Inserted text in a sentence (styled for clarity):
The latest version includes a new feature: real-time collaboration.

By the end of this tutorial, you’ll use the <ins> element to mark inserted text and show document revisions clearly.
In HTML, the <ins> tag indicates text that has been added to a document. This guide covers syntax, attributes, comparisons with del, accessibility, and best practices for beginners and content editors alike.
Wrap inserted text in <ins> opening and closing tags.
Mark additions during editing, not just underlines.
Distinguish insertions, deletions, and outdated content.
Record why and when text was inserted.
Customize underline, color, and background for edits.
Help assistive tech convey document changes.
<ins> Tag?The insertion element (<ins>) represents text that has been added to a document. Browsers typically render it with an underline, although the exact appearance may vary based on browser styles and your CSS.
Use <ins> when text was inserted during editing or revision tracking. Do not use it merely to underline words for emphasis — that is not its purpose.
The element is inline, so it flows naturally inside paragraphs, list items, and headings. Pair it with <del> when you need to show both removed and added wording in the same passage.
Wrap the inserted text between opening and closing <ins> tags:
<ins>Inserted Text Here</ins><ins> is an inline element — it nests inside paragraphs and other phrasing content.<ins />) is not valid in HTML.cite and datetime when documenting editorial changes.<del> to show both old and new wording in revisions.| Use Case | Code Snippet | Result |
|---|---|---|
| Basic insertion | <ins>added text</ins> | added text |
| With timestamp | <ins datetime="2026-06-10"> | Records when inserted |
| With citation | cite="/revisions/3" | Links to change explanation |
| Removed text | <del>old</del> | |
| Styled insertion | <ins class="added"> | added |
| Outdated content | <s>old price</s> |
<ins>, <del>, and <s>These elements may look similar, but they communicate different meaning:
| Element | Meaning | Best for |
|---|---|---|
<ins> | Text inserted into the document | Editorial additions, revision tracking |
<del> | Text removed from the document | Deleted words in edited content |
<s> | No longer accurate or relevant | Crossed-out sale prices, outdated info |
| Together | del + ins | Show both sides of an editorial change |
<ins> vs <u>Do not confuse insertions with generic underlines:
| Element | Meaning | Best for |
|---|---|---|
<ins> | Inserted text in a document | Revision history, editorial changes |
<u> | Unarticulated annotation | Proper names in some languages, spell-check marks |
| Decoration | Neither element | Use CSS text-decoration: underline on a span |
The <ins> element supports these specific attributes plus global attributes such as class and id:
cite RevisionURL pointing to a document that explains why the text was inserted.
cite="/revisions/2026-06"datetime RevisionISO 8601 date or date-time when the insertion occurred.
datetime="2026-06-10T14:30:00Z"class GlobalCSS hook for custom insertion styling beyond default underline.
class="highlight"title GlobalAdvisory tooltip with extra context about the insertion.
title="Added in v2.1"<ins
class="highlight"
cite="/revisions/june-2026"
datetime="2026-06-10"
>Inserted Text Here</ins>Prefer CSS classes over inline styles for reusable edit-tracking design systems.
Styled insertions, documenting changes, CSS patterns, and del + ins revisions with copy-ready code and live previews.
Inserted text in a sentence (styled for clarity):
The latest version includes a new feature: real-time collaboration.
Combine class with CSS to highlight insertions beyond the default underline.
<p>This is an example of <ins class="highlight">Inserted Text Here</ins> in a sentence.</p>Use <ins> to document editorial changes, legal revisions, collaborative edits, and version diffs. Pair with <del> when showing both removed and added wording.
Visually represent text added to updated content or release notes.
<p>The latest version includes a new feature: <ins>real-time collaboration</ins>.</p>Use CSS classes to enhance the visual representation of insertions with color and background.
<ins class="added">New Content Added</ins>Pair ins with del to show both the old and new wording in a revision.
<p>
The original plan was
<del>postponed</del>
<ins>re-evaluated</ins>
due to unforeseen circumstances.
</p>Browsers underline ins by default. Customize appearance for clearer revision tracking:
text-decoration Default underlinebackground Green highlight for addscolor Distinct insertion tonedel pairing Red delete, green insert/* Default insertion styling */
ins {
text-decoration: underline;
text-decoration-color: #22c55e;
}
ins.edit-added {
color: #166534;
background: #f0fdf4;
text-decoration: none;
border-bottom: 2px solid #22c55e;
}
ins.highlight {
background: #fef9c3;
color: #854d0e;
padding: 0 0.15em;
border-radius: 3px;
}Live styled insertion
Policy updated: returns are now accepted within 30 days.
Semantic insertions help users understand document changes:
Wrap newly inserted words in ins, optionally with datetime.
User-agent styles visually distinguish inserted text from surrounding prose.
Screen readers can announce insertions as added content in the document.
Readers understand what was added during editing or content updates.
The <ins> element is fully supported in all browsers, including legacy Internet Explorer.
From legacy Internet Explorer to the latest mobile browsers — the ins element is fully supported for revision tracking.
Bottom line: Ship revision tracking with confidence. The <ins> element is safe to use in every production environment today.
Mastering the <ins> tag helps you communicate additions in HTML documents clearly. Whether highlighting new features in release notes or tracking editorial revisions, ins enhances the clarity and communicative power of your content.
Remember to pair it with del when showing full edits, use cite and datetime for context, and style insertions with CSS for readability.
ins for text genuinely added to a documentdel when showing editorial revisionsdatetime and cite for audit trailsins for decorative underlinesins with s or u<ins>Bookmark these before you ship — they’ll keep your revision markup semantic and accessible.
<ins> marks text added to a document.
Browsers underline ins by default.
Renderingdel = removed; ins = added.
Record why and when text was inserted.
AttributesGreen highlights pair well with red deletions.
DesignWorks in every browser, including legacy IE.
Compatibilityins marks added text. del marks removed text. Use both together for full revision diffs.ins means text was inserted during editing. s means content is no longer accurate but was not necessarily deleted from the source.cite links to a document explaining the insertion. datetime records when it happened in ISO 8601 format.ins for decorative underlines — use CSS instead.Try styled insertions, document changes, and del + ins revisions in the interactive editor.
6 people found this page helpful