ins and del were introduced in HTML 4.0, which can help creators cooperate with each other when developing documents, and also maintain some editing (for example, it can reflect the creator's modification of the document over a period of time and how he thinks) and version control (With the help of software, the document can be restored to its state at a specific time).
Attributes
1.cite: The attribute value is the URI of a document or information resource. This attribute is to indicate why the document was changed.
2.datetime: The attribute value clearly and in detail describes the date and time when the modification occurred
The format of the datetime attribute value: YYYY-MM-DDThh:mm:ssTZD
YYYY = 4 digits representing the year (0000-9999)
MM = 2 digits represent the month (01 - 12)
DD = 2 digits represent the day (01 - 31)
hh = 2 digits represent the hour (00 - 23)
mm = 2 digits represent the minute (00 - 59)
ss = 2 is a number representing seconds (00 - 59)
TZD = time zone indicator
For example, the modification time is: May 15, 2007 19:25:25 Beijing time
Datetime is written as :
datetime="20070515T112525Z"
Greenwich Mean Time is also called "Zulu", so the Z value is used to represent it
datetime="20070515T192525 08:00"
Beijing time is 8 hours ahead of Greenwich Mean Time
This ensures that the writing may be different due to different locations of the creator, but the universal time is the same
Note:
It is case-sensitive, T and Z must be capitalized
Hours and minutes are required, if you don’t know the seconds or want to ignore them, you can use 00 to represent them
3. id, class, lang,dir,title,style
4.onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Usage
The ins and del elements in HTML can be used as either block-level elements or inline elements, but they cannot be used as both elements at the same time. So they can contain one or several words in a paragraph, or they can contain several block-level elements such as paragraphs (p), lists (ul, ol, dl), tables (table), etc.
I have23cents
I have 3 Fenqian
I have 3 cents< /p>