HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML Global Attributes

List of HTML Global Attributes

accesskey Attribute
The accesskey attribute is used to define a shortcut key to activate/focus an element. Its value must be a single character (a letter or a digit).
class Attribute
The class attribute specifies one or more class names for an element. It is mostly used for CSS styling but some developers use it in JavaScript.
contenteditable Attribute
The contenteditable attribute decides whether the content of an element is editable or not.
data-* Attributes
The data-* attributes are used to store custom data private to the page or application.
dir Attribute
The dir attribute defines the text direction of the elements content.
draggable Attributes
The draggable attribute defines whether an element is draggable or not. It is used in combination with drag and drop operations.
hidden Attribute
The hidden attribute is a boolean attribute. When present, it specifies that an element is no longer required or relevant to the document.
id Attribute
The id attribute specifies a unique id for an HTML element. It is mostly used for CSS Styling and JavaScript DOM manipulations. 
lang Attribute
The lang attribute is used to define the language of the content of the element. Its common example is en for simple English, en-US for USA English, and es for Spanish.
spellcheck Attribute
The spellcheck attribute specifies whether the element is to have its spelling and grammar checked or not.
style Attribute
The style attribute defines an inline styling for an element. It will override any style set globally.
tabindex Attribute
The tabindex attribute defines the tab order of an element when the tab button is used for navigating. The tabindex attribute can be used on any HTML element
title Attribute
The title attribute is used to define a piece of extra information about an element.
translate Attribute
The translate attribute is used to specify whether the content of an element should be translated or not.