HTML GLOBAL ATTRIBUTES LIST
Global attributes are attributes that can be applied to most HTML elements.
They are not specific to any particular element and can be used with various elements to provide common functionalities.
Get all the global attributes used in html along with it's description and examples.
Attribute
Description
Example
accesskey
Defines a keyboard shortcut to activate or focus an element.
Run
class
Defines one or more class names for an element to be targeted with CSS or JavaScript.
Run
contenteditable
Specifies whether an element is editable by the user.
Run
contextmenu
Specifies the context menu to be displayed when a user right-clicks on the element.
Run
data-*
Allows storing custom data private to the page or application.
Run
dir
Specifies the text direction of the content.
Run
draggable
Specifies whether an element is draggable by the user.
Run
dropzone
Specifies whether an element accepts dropped content and what types are accepted.
Run
hidden
Specifies that an element is not yet, or is no longer, relevant.
Run
id
Defines a unique identifier for an element to be targeted with CSS or JavaScript.
Run
lang
Specifies the primary language of the content.
Run
spellcheck
Specifies whether an element's spelling and grammar should be checked.
Run
style
Specifies inline CSS styles for an element.
Run
tabindex
Specifies the tabbing order of an element within the document.
Run
title
Provides additional information about an element, often displayed as a tooltip.
Run
Quick Recap - Topics Covered
HTML GLOBAL ATTRIBUTES LIST
Refer all the global attributes given on this page
Practice With Examples in Compilers
The Concepts and codes you leart practice in Compilers till you are confident of doing on your own. A Various methods of examples, concepts, codes availble in our websites. Don't know where to start Down some code examples are given for
this page topic use the code and compile or Try on own Now
Example 1
Example 1
Example 2
Example 3
Example 4
Example 5
Quiz