home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Book HomeHTML & XHTML: The Definitive GuideSearch this book

3.9. Editorial Markup

HTML 4.0 introduced two new tags that can help groups of authors collaborate in the development of documents and maintain some semblance of editorial and version control. The insert (<ins>) and delete (<del>) tags let you designate portions of your document's body as either new or added content, or designate old stuff that should be replaced. And with special attributes, you may indicate when you made the change (datetime) and a reference to a document that may explain the change (cite).

3.9.1. The <ins> and <del> Tags

The <ins> and <del> tags let authors set off portions of body contents they intend to add to or delete from the current version of their document. HTML 4/XHTML-compliant browsers display the contents of the <ins> or <del> tags in some special way so readers can quickly scan the document for the changes.

<ins> and <del>

Function:

Defines inserted and deleted document content

Attributes:

CITE

ONKEYPRESS

CLASS

ONKEYUP

DATETIME

ONMOUSEDOWN

DIR

ONMOUSEMOVE

ID

ONMOUSEOUT

LANG

ONMOUSEOVER

ONCLICK

ONMOUSEUP

ONDBLCLICK

STYLE

ONKEYDOWN

TITLE

End tag:

</ins> and </del>; never omitted

Contains:

body_content

Used in:

body_content

Netscape 4 and earlier versions ignore the tags, as did Internet Explorer 4 and earlier versions. The newest versions of Internet Explorer (Version 5) and Netscape (Version 6) use common editorial markings by underlining inserted text and striking out deleted text (Figure 3-3).

Figure 3-3

Figure 3-3. Internet Explorer Version 5 displays <ins> and <del>-tagged content



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.











??????????????@Mail.ru