HTML Global Attributes
HTML(HyperText Markup Language) has many global tag attributes which are used to modify the working of tags. All web developers should know how to write, use and working of each global attributes.
Our global attribute reference tutorial covers all of the HTML global attributes in HTML5 which will provide you with the knowledge in easy and understandable language.
Global Attributes
Click on the Attribute to know more about it.
Attribute | Description |
---|---|
accesskey | Used to specify a shortcut key to activate/focus an element |
class | Used to specify one or more classnames for an element |
contenteditable | Used to specify whether the content of an element is editable or not |
data | Used to store custom data private to the page or application |
dir | Used to specify the text direction for the content inside the tag |
draggable | Used to specify whether an element is draggable or not |
hidden | Used to specify that an element is not yet, or is no longe, relevant |
id | Used to specify a unique id for an element |
lang | Used to specify the language of the element's content |
spellcheck | Used to specify whether the element is to have its spelling and grammer checked or not |
style | Used to specify an inline CSS style for an element |
tabindex | Used to specify the tabbing order of an element |
title | Used to specify extra information about an element |
translate | Used to specify whether the content of an element should be translated or not |
How to learn HTML?
- HTML tutorial from Algbly - We provide step by step best HTML tutorials, examples, and project. Get started with HTML
- Official HTML documentation - Might be hard to follow and understand for beginners. Visit official HTML Programming documentation
- Write a lot of HTML code - The only way you can learn HTML is by writing a lot of code and follow out tutorials carefully.