Home  >  Article  >  What are the attributes of the article tag?

What are the attributes of the article tag?

小老鼠
小老鼠Original
2023-12-21 10:41:511492browse

The attributes of the article tag include contenteditable, contextmenu, data-yourvalue, draggable, hidden, item, itemprop, spellcheck and subject. Detailed introduction: 1. The contenteditable attribute is used to specify whether users are allowed to edit content, and its value can be true or false; 2. Contextmenu attribute, etc.

What are the attributes of the article tag?

The attributes of the article tag include contenteditable, contextmenu, data-yourvalue, draggable, hidden, item, itemprop, spellcheck and subject.

  1. The contenteditable attribute is used to specify whether users are allowed to edit content, and its value can be true or false.

  2. The contextmenu attribute is used to specify the context menu of the element, and its value can be the id of the menu.

  3. The data-yourvalue attribute is an attribute defined by the creator. Authors of HTML documents can define their own attributes. This attribute must start with "data-" and the value is value.

  4. The draggable attribute is used to specify whether the user is allowed to drag the element. Its value can be true or false.

  5. The hidden attribute is used to specify that the element is irrelevant. The hidden element will not be displayed, and its value is hidden.

  6. The item and itemprop attributes are used to combine elements and items, and the values ​​can be empty, url, etc.

  7. The spellcheck attribute is used to specify whether the element must be checked for spelling or grammar. Its value can be true or false.

  8. The subject attribute is used to specify the item corresponding to the element, and the value can be id.

The above is the detailed content of What are the attributes of the article tag?. 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