Global Attributes In HTML
Global attributes are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements.In addition to the element specific attributes, the HTML5 defines few attributes that are common to all elements. These attributes may be specified on all elements, with some exceptions where it is not relevant, such as elements found inside the <head> section of the document, example. <title>,<script>,<base> etc.
Rotate your phone to see the table:
Attribute |
Value |
Description |
accesskey |
shortcut key |
Specifies a keyboard
shortcut to activate or focus the element. |
id |
name |
Specifies a unique
identifier (ID) for an element which must be unique in the whole document. |
lang |
language-code |
Specifies the
primary language for the element's text content. |
xml:lang |
language-code |
Specifies the
primary language for the element's text content, in XHTML |
title |
text |
Provides advisory
information related to the element. It would be appropriate for a tooltip. |
dropzone |
Copy Move link |
Specifies whether
the dragged data is copied, moved, or linked, when dropped. |
hidden |
hidden |
Indicates that the
element is not yet, or is no longer, relevant. |
translate |
yes |
Specifies whether
the text content of an element should be translated or not. |
dir |
ltr |
Specifies the base
direction of directionality of the element's text. |
contenteditable |
true |
Indicates whether
the content of an element is editable by the user or not. |
tabindex |
number |
Specifies the
tabbing order of an element. |
style |
style |
Specifies inline
style information for an element. |
spellcheck |
true |
Specifies whether
the element may be checked for spelling errors or not. |
draggable |
true |
Specifies whether an
element is draggable or not. |
class |
classname |
Assigns a class name
or space-separated list of class names to an element. |
data-* |
data |
Specified on any
HTML element, to store custom data specific to the page. |
0 Comments
Please do not enter any spam links in the comment box