Home>Article>Web Front-end> Explanation of rules for using ins tags

Explanation of rules for using ins tags

巴扎黑
巴扎黑 Original
2017-06-27 11:35:03 3802browse

The explanation of ins from the information is: defining an inserted text. I don’t know if you are familiar with theinstag.

The data explainsinsas: defining an inserted text.insThere are two standardattributes:citeanddatetime. The value ofciteis a URL, which points to another document, used to explain the reason for the new text insertion; the value ofdatetimeis a time, used to specify the date and time of text insertion, The format is YYYY-MM-DDThh:mm:ssTZD, where:

YYYY = 4 digits representing the year (such as 2008)
MM = 2 digits representing the month (such as 01,02,.. .12)
 DD = 2 digits representing the day (such as 01,02,...31)
hh = 2 digits representing the hour (such as 01,02,...24)
mm = 2 is a number representing minutes (such as 01,02,...60)
 ss = 2 is a number representing seconds (such as 01,02,...60)
 TZD = Time zone indicator

If the modified time is: May 28, 2008 21:05:00

Then the way to writedatetimein Greenwich Mean Time is: 2008-05-28T21:05:00Z ;The writing method according to Beijing time is: 2008-05-28T21:05:00+08:00. Because Beijing time is 8 hours ahead of Greenwich Mean Time.

So what is inserting a text? As the name suggests, it refers to inserting a new text into the original document. When usingins, we usually use anotherdeltag, which is used to define thedeletedtext in the document.

For example, a sentence of news: "A 7.8-magnitude earthquake occurred in Wenchuan, China on May 12." Now it has been revised to level 8.0 after expert survey. Then you can useinsto insert new text to modify this sentence:

5.12 What happened in Wenchuan, China7.88.0magnitude earthquake

After modification:

5.12 China Wenchuan7.8##8.0earthquake occurred

The

citeanddatetimevalues The reason and date for the modification were explained.

Another example: "There are 200 tents in the warehouse". After shipping today, there are still 100 tents left:

Existing in the warehouse 200 100Top tent

After modification :

Existing warehouse

200100tents

The above two use

delandinsThe example allows us to clearly know when the document was modified, why it was modified, and when it was modified.

The above is the detailed content of Explanation of rules for using ins tags. For more information, please follow other related articles on the PHP Chinese website!

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