Home > Article > Web Front-end > Attributes and usage of ins tag and del tag_HTML/Xhtml_Web page production
ins and del attributes
cite: The attribute value is the URI of a document or information resource. This attribute is to indicate why the document was changed.
datetime: The attribute value clearly and in detail describes the date and time when the modification occurred
INS and DEL are used to markup sections of the document that have been inserted or deleted with respect to a different version of a document (e.g., in draft legislation where lawmakers need to view the changes).
These two elements are unusual for HTML in that they may serve as either block-level or inline elements (but not both). They may contain one or more words within a paragraph or contain one or more block-level elements such as paragraphs, lists and tables.
del defines the deleted text content in the document, ins is used to describe updates and corrections in the document. The default browser style of del is strikethrough, and the default style of ins is underlined. This can also be explained very well. The usage of the two is usually that the two elements are used in conjunction with each other.
ins and del usage
The two elements ins and del can be used as either block-level elements or inline elements in HTML, 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 cents
Creators can comment on inserted or deleted elements through the title attribute, and user agents (such as browsers) may display this information to users
I have 3 cents
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 controlled through CSS