Home  >  Article  >  Web Front-end  >  Detailed explanation of using INS and DEL to mark documents to change usage_HTML/Xhtml_Web page production

Detailed explanation of using INS and DEL to mark documents to change usage_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:40:181615browse

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.

Copy code
The code is as follows:

I have23cents


I have 3 Fenqian


Creators can comment on inserted or deleted elements through the title attribute, and the user agent (such as a browser) may display this information to the user

I have 3 cents

< /p>

This is a wrong way of writing, that is, ins and del cannot be both block-level elements and inline elements at the same time
The display effect of ins and del on the page can be achieved through CSS Control, for example, read the ins and del effects of this article "How IE, FireFox, and Opera Browsers Support Alpha Transparency".
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn