Night Mode
Light Mode
In this tutorial we discuss about the Global HTML Attributes.
Attributes which can used in all HTML elements, is called Global Attributes.
Note : HTML Global Attributes do not effect on some elements.
HTML Global Attributes
Below is the list of HTML Global Attributes with brief description.
The below attributes is used only in all elements of HTML 5, not in older versions of HTML.
Attribute | Function |
---|---|
HTML accesskey Attribute | It provides the keyboard shortcut for an element. |
HTML align Attribute | It specifies the horizontal alignment for the element’s content. |
HTML background Attribute | It specifies the background image, behind the element content. |
HTML class Attribute | It specifies the class name for an element. |
HTML contenteditable Attribute | It specifies whether the element content is editable or not. |
HTML data- Attribute | It is used to store custom data attributes on all HTML elements. |
HTML dir Attribute | It specifies the direction of element’s content. |
HTML draggable Attribute | It allows the user to drag the element content to specific place. |
HTML dropzone Attribute | It specifies that what type of content will be dropped. |
HTML hidden Attribute | It specifies, whether an element should be visible or not. |
HTML id Attribute | It specifies the unique id for an HTML element. |
HTML lang Attribute | It specifies the language for element’s content. |
HTML spellcheck Attribute | It specifies whether the element’s content may be checked for spelling errors or not. |
HTML style Attribute | It specifies inline styling for an element. |
HTML tabindex Attribute | It specifies the tab order for an element. |
HTML title Attribute | It specifies extra information as a tooltip about an element. |
Here are a few tutorials for you to read next:
If you find this tutorial helpful, then please Subscribe to our YouTube Channel for video tutorials, and share this article on social media.
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.