Edits (§9.4)

Changes

The <ins> and <del> elements mark insertions and deletions, to track changes between versions of a document.

XHTML 2.0: The W3C is considering replacing <ins> and <del> in XHTML 2.0 with a common edit attribute, which can also mark changed and moved content. The edit attribute is better designed to fulfill the needs of revision tracking than <ins> and <del>, which seem like ill‐considered semantic replacements for the deprecated <u> and <s> elements.

Example:

Neil Armstrong, taking the first human step on the moon, said, <q>That&rsquo;s one small step for <del>Man</del><ins>a man</ins>, one giant leap for mankind.</q>

Your Web browser renders it like this:

Neil Armstrong, taking the first human step on the moon, said, That’s one small step for Mana man, one giant leap for mankind.

Example:

<blockquote title="The Galaxy Song">
<p>Just remember that you&rsquo;re standing on a planet that&rsquo;s evolving,
<br>revolving at <del>900</del><ins>1,000</ins> miles an hour,
<br>It&rsquo;s orbiting at <del>19</del><ins>18</ins> miles a second, so it&rsquo;s reckoned,
<br>a sun that is the source of all our power.
<br>The sun and you and me, and all the stars that we can see,
<br>are moving <del>at a</del><ins>13</ins> million miles a day,
<br>In an outer spiral arm, at <del>40,000</del><ins title="540,000">half a million</ins> miles an hour,
<br>of the galaxy we call the Milky Way.</p>

<p>Our galaxy itself contains <del>100</del><ins>400</ins> billion stars,
<br>it&rsquo;s 100,000 light-years side-to-side,
<br>It bulges in the middle, <del>16</del><ins>15</ins>,000 light-years thick,
<br>but out by us it&rsquo; just 3,000 light-years wide.
<br>We&rsquo;re 30,000 light-years from galactic central point,
<br>we go round every <del>200</del><ins>one quarter</ins> million years,
<br>And our galaxy is only one of millions of billions
<br>in this amazing and expanding universe.</p>

<p>The universe itself keeps on expanding and expanding,
<br>in all of the directions it can whiz,
<br>As fast as it can go, the speed of light you know,
<br><del>12 million miles a minute</del><ins title="186,000">one eight six thousand miles a second</ins>, and that&rsquo;s the fastest speed there is.
<br>So remember, when you&rsquo;re feeling very small and insecure,
<br>how amazingly unlikely is your birth,
<br>And pray that there&rsquo;s intelligent life somewhere up in space,
<br>&rsquo;cause there&rsquo;s bugger all down here on Earth.</p>
</blockquote>

Your Web browser renders it like this:

Just remember that you’re standing on a planet that’s evolving,
revolving at 9001,000 miles an hour,
It’s orbiting at 1918 miles a second, so it’s reckoned,
a sun that is the source of all our power.
The sun and you and me, and all the stars that we can see,
are moving at a13 million miles a day,
In an outer spiral arm, at 40,000half a million miles an hour,
of the galaxy we call the Milky Way.

Our galaxy itself contains 100400 billion stars,
it’s 100,000 light-years side-to-side,
It bulges in the middle, 1615,000 light-years thick,
but out by us it’s just 3,000 light-years wide.
We’re 30,000 light-years from galactic central point,
we go round every 200one quarter million years,
And our galaxy is only one of millions of billions
in this amazing and expanding universe.

The universe itself keeps on expanding and expanding,
in all of the directions it can whiz,
As fast as it can go, the speed of light you know,
12 million miles a minuteone eight six thousand miles a second, and that’s the fastest speed there is.
So remember, when you’re feeling very small and insecure,
how amazingly unlikely is your birth,
And pray that there’s intelligent life somewhere up in space,
’cause there’s bugger all down here on Earth.

Date and time

The datetime attribute specifies the date of the revision.

Example:

As of <del datetime="2024-12-22T08:00:00">18 December 1998</del><ins datetime="2024-12-22T08:00:00">22 December 2024</ins>, no Web browser fully supports the <del datetime="2024-12-22T08:00:00">one</del><ins datetime="2024-12-22T08:00:00">many</ins> year old standard.

Your Web browser renders it like this:

As of 18 December 199822 December 2024, no Web browser fully supports the onemany year old standard.

Related Mozilla bug reports: Metadata.

Explanatory links

<ins> and <del> can also mark revisions to blocks of mark up.

The cite attribute provides a link to more information about a revision.

Example:

This revision links to “Why ‘click here’ is bad linking practice” as a reason for the change:

<del cite="http://www.cs.tut.fi/~jkorpela/www/click.html"><p><a href="http://www.lungusa.org/diseases/lungpneumoni.html">Click here</a> for more information about pneumonia.</p></del>
<ins cite="http://www.cs.tut.fi/~jkorpela/www/click.html"><p>The American Lung Association has <a href="http://www.lungusa.org/diseases/lungpneumoni.html">more information about pneumonia</a>.</p></ins>

Your Web browser renders it like this:

Click here for more information about pneumonia.

The American Lung Association has more information about pneumonia.

Related Mozilla bug reports: Del-Only-Inline, Metadata.

Your Browser

Your Web browser identified itself as Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) when it requested this page. Mozilla 5.0, why do you lie to me so?