🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

<ins>

AI & DATA SCIENCE // ins-tag

The <ins> element marks text that has been inserted/added to a document, typically rendered underlined, often paired with <del> to show a tracked edit.

Syntax

The price is now <del>$49.99</del> <ins>$39.99</ins>.

Deep Dive Course

**`<ins>`** represents content that was **added** to a document, commonly used together with `<del>` to show a tracked change — like a diff view, a legal document redline, or an edited article showing what changed. Both elements support optional **`cite`** (a URL explaining the change) and **`datetime`** (when the edit was made) attributes for more detailed edit history.

1Understanding <ins>

`<ins>` represents content that was added to a document, commonly used together with <del> to show a tracked change — like a diff view, a legal document redline, or an edited article showing what changed. Both elements support optional `cite` (a URL explaining the change) and `datetime` (when the edit was made) attributes for more detailed edit history.

💡

<ins> and <del> are semantically about DOCUMENT EDITS specifically — for a simple 'this is now outdated' without edit-history framing (like a crossed-out sale price), <s> is usually the better fit than <del>.

editor.html
<p>Store hours: <del>9 AM - 5 PM</del> <ins>9 AM - 6 PM</ins></p>
localhost:3000

2Practical Example

Here is a real-world application of <ins> showing how it is used in production HTML.

editor.html
<!-- Recording when an edit was made -->
<p>
  <del datetime="2026-01-15">Draft version</del>
  <ins datetime="2026-02-01">Final version</ins>
</p>
localhost:3000

3Best Practices

Follow these guidelines when working with <ins>:

1. Pair <ins> with <del> to represent a specific tracked edit

2. Use the datetime attribute to record when the change was made, for revision history

3. Use <s> instead of <del> when there's no real 'edit' being documented, just outdated content

⚠️

Tip: <ins> and <del> are semantically about DOCUMENT EDITS specifically — for a simple 'this is now outdated' without edit-history framing (like a crossed-out sale price), <s> is usually the better fit than <del>.

editor.html
<p>Store hours: <del>9 AM - 5 PM</del> <ins>9 AM - 6 PM</ins></p>
localhost:3000

Examples

Example 01Basic Usage
<p>Store hours: <del>9 AM - 5 PM</del> <ins>9 AM - 6 PM</ins></p>
Example 02Advanced Example
<!-- Recording when an edit was made -->
<p>
  <del datetime="2026-01-15">Draft version</del>
  <ins datetime="2026-02-01">Final version</ins>
</p>

Best Practices

  • Pair with to represent a specific tracked edit
  • Use the datetime attribute to record when the change was made, for revision history
  • Use instead of when there's no real 'edit' being documented, just outdated content

Interview Question

What's the difference in intent between <ins>/<del> and <s>?

Hint: Think about 'document revision history' versus 'content that's just no longer accurate'.

<ins> and <del> are meant to represent a document's EDIT HISTORY — this is what was added, this is what was removed, optionally with a date and a cite URL explaining why, much like a tracked-changes view. <s> makes no claim about editing history at all; it just says the content is no longer accurate or relevant right now, like an old sale price crossed out next to the new one, with no implication that a formal edit was recorded.

Exercises

EasyPractice using <ins> in a real scenario.
View Solution
<p>Store hours: <del>9 AM - 5 PM</del> <ins>9 AM - 6 PM</ins></p>

Frequently Asked Questions

What's the difference in intent between <ins>/<del> and <s>?

and are meant to represent a document's EDIT HISTORY — this is what was added, this is what was removed, optionally with a date and a cite URL explaining why, much like a tracked-changes view. makes no claim about editing history at all; it just says the content is no longer accurate or relevant right now, like an old sale price crossed out next to the new one, with no implication that a formal edit was recorded.

Related Functions

s-tagstrike-tag