Global attributes are common amongst all
The table below shows a list of global attributes that can be applied to any HTML element:
Provides a shortcut key to activate an element. It must be a single character or a number.
Indicates whether or not the element is editable.
Custom data attributes that allow the exchange of information between HTML and its DOM.
Indicates the text direction in an element.
Indicates whether or not an element is draggable.
Hints what action or response should be generated when the enter key is pressed through virtual keyboards.
Hide the elements of a page that are no longer relevant or available.
Unique identifier for an element or tag. It should be distinctive throughout the HTML document.
Specifies that a standard HTML tag should behave like a custom built-in element.
Global, unique identifier of an element or tag.
Allocates specific scope about an element to indicate that this block of content is for a specified element. It can be used with itemtype.
Indicates the language for an element.
A 'number used once' that can be used to check if a fetch request is allowed to proceed to help implement security.
A space-separated list of part names of any tag. It helps CSS select style elements to apply effects by the ::part() method in a shadow tree.
The "slot" attribute assigns a slot in a shadow DOM. A shadow tree behaves like any HTML document. It coexists with the document other trees, but it is completely independent. It provides the opportunity to define your own classes and IDs that do not interfere with other tree attributes in the same document.
i.e. name="ID" has same name as class name.
Indicates whether the text inside an element can be checked for spelling mistakes. It can either be true or false.
Defines inline CSS style for an element.
Additional information about a tag or an element to provide a basic definition.
Helps to translate the text of an element. It can be set to either `yes` or `no`, to specify if the text is translatable.
View all Courses