| Depr. | Version |
|---|---|
| No | HTML 4 |
| IE5.5+ | FF1+ | SA1.3+ | OP9.2+ | CH2+ |
|---|---|---|---|---|
| Partial | Partial | Partial | Partial | Partial |
Syntax
Description
Perhaps the reason why the
del element was used to change the page content is
explained in an external document. In such cases, you can use the
cite attribute to point users to that
document.
Example
The cite
attribute is used in conjunction with both the del and
ins elements below:
<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
favorite 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>
Value
This element takes as its value a reference to another document in the form of a URI.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | Chrome | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial | Partial |
None of the browsers
we tested do anything visual with the cite
attribute, but the information is available in the DOM for the purposes of
scripting or styling with CSS. Given the nature of how different
industries might want to handle/render the way that document changes are
indicated to the user, a legal firm’s requirements for rendering a change
that has an associated citation included in the markup may differ greatly
from that, say, of a leisure center’s health and safety team. How they
appear could be radically changed to suit these needs, but by default the
browser does not include the information contained in the
cite attribute on screen to the user.
The compatibility chart is set to partial, because the information is there for the taking but the browser does not give any hint that there is citation information available, only that there has been a deletion (with the strikethrough font).
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.