Ins and Del are introduced in HTML4.0 to help authors collaborate on the development of documents, and also maintain some edits (such as how the creator is modifying the document for a period of time, thinking about it) and versioning components (with the help of the software, You can restore a document to its state at a specific time.
Property
Cite: The attribute value is the URI of a document or information resource, which is to indicate why the interpretation of this document is changed
DateTime: Property value explicitly detailing the date and time that the modification occurred
Format of datetime attribute value: Yyyy-mm-ddthh:mm:sstzd
YYYY = 4-digit number expression year (0000-9999)
MM = 2 digits for month (01-12)
DD = 2-digit number representation day (01-31)
HH = 2-digit digit hour (00-23)
MM = 2 is a number for minutes (00-59)
SS = 2 for Number expression seconds (00-59)
TZD = time Zone indicator
For example, the modified time is: Beijing time May 15, 2007 19:25:25
The DateTime is written as:
Datetime= "20070515t112525z"
Greenwich Mean Time is also called "Zulu", so it is represented by a Z-value.
Datetime= "20070515t192525+08:00"
Beijing time is 8 hours earlier than Greenwich Mean Time
This ensures that the creator's location is different, but the universal time is the same.
Attention:
Case sensitive, T and Z must all be uppercase
Time and division are required, do not know the seconds or want to ignore seconds can be expressed in 00
ID, class, Lang,dir,title,style
OnClick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Usage
Ins and del two elements are in HTML, either as block-level (Block-level) elements or as inline (inline) elements, but not as this two element at the same time. So they can contain one or more text in a paragraph, or it can contain several block-level elements like paragraphs (p), lists (UL, OL, DL), tables (table), and so on. This article is from http://bianceng.cn (Getting started with programming)
<p> I have <del cite= "http://*.com/example.html" datetime= "20070515t192525+08:00" >2</del><ins cite = "http://*.com/example.html" datetime= "20070515t192525+08:00" >3</ins> Penny </p>
<del title= "just Lost" datetime= "20070515t192525+08:00" ><p> I have 3 cents </p></del>
The creator can comment on the inserted or deleted elements through the title attribute, and the user agent (such as the browser) may display the information to the user
<p><del title= "just Lost" datetime= "20070515t192525+08:00" ><div><p> I have 3 cents </p></div ></del></p>
This is the wrong writing, that ins and Del cannot be both block-level elements and inline elements
Ins and Del on the page display effect can be controlled by CSS, such as watching this "IE, FireFox, Opera browser support Alpha transparent method" ins and Del effect.