Home  >  Article  >  Web Front-end  >  Attributes and usage of ins tag and del tag_HTML/Xhtml_Web page production

Attributes and usage of ins tag and del tag_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:42:122289browse
ins and del were introduced in HTML 4.0, which can help creators collaborate with each other when developing documents, and also maintain some edits (for example, it can reflect the creator’s time within a period of time) It is the component of modifying the document and how to think) and version control (with the help of software, the document can be restored to its state at a specific time).

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


W3C’s explanation of del and ins:

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
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