Home >Common Problem >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. 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.
The attributes of the article tag include contenteditable, contextmenu, data-yourvalue, draggable, hidden, item, itemprop, spellcheck and subject.
The contenteditable attribute is used to specify whether users are allowed to edit content, and its value can be true or false.
The contextmenu attribute is used to specify the context menu of the element, and its value can be the id of the menu.
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.
The draggable attribute is used to specify whether the user is allowed to drag the element. Its value can be true or false.
The hidden attribute is used to specify that the element is irrelevant. The hidden element will not be displayed, and its value is hidden.
The item and itemprop attributes are used to combine elements and items, and the values can be empty, url, etc.
The spellcheck attribute is used to specify whether the element must be checked for spelling or grammar. Its value can be true or false.
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!