cite (HTML attribute)
Example
The cite
attribute is shown below used in both the del and
ins elements:
<p>Bernie enjoyed nothing more than a <del cite="http://berniesworld.com/drag.html" datetime="2007-11-05T23:31:05Z">night out on the town at his favourite drag queen show</del> <ins cite="http://berniesworld.com/drag.html" datetime="2007-11-05T23:33:32Z">quiet night in with a warm cup of cocoa</ins></p>
Description
The reason why content has been
changed using the ins element can be explained in an
external document, and you would use the cite
attribute to point to that document.
Value
A reference to another document (URI).
Compatibility
| IE | 5.5 | None |
|---|---|---|
| 6.0 | None | |
| 7.0 | None | |
| Firefox | 1.0 | None |
| 1.5 | None | |
| 2.0 | None | |
| Safari | 1.3 | None |
| 2.0 | None | |
| 3.0 | None | |
| Opera | 9.2 | None |
| 9.5 | None |
None of the browsers in the
support chart do anything useful with the cite
attribute. It would be possible to use Dom scripting to retrieve this
information for some purpose, but natively, the most that any of the
browsers tested can do is demonstrated in Firefox (right-click, select
Properties):

However,
given that there is no real visual clue that the ins or
del content has anything extra to reveal, there can be
few people on earth that would ever discover this information. And even
when they do, the URI of the document is not clickable, nor is the date
formatted in a friendly way.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

