0% found this document useful (0 votes)
33 views2 pages

HTML Global Attributes

The global attributes in HTML can be used on any HTML element and include attributes like class, id, style, lang, and title which provide additional context and meaning to elements. Attributes like accesskey allow shortcut keys, draggable and dropzone control dragging and dropping, and contenteditable specifies whether content is editable. Data attributes can store custom data privately.

Uploaded by

parlomiti_
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

HTML Global Attributes

The global attributes in HTML can be used on any HTML element and include attributes like class, id, style, lang, and title which provide additional context and meaning to elements. Attributes like accesskey allow shortcut keys, draggable and dropzone control dragging and dropping, and contenteditable specifies whether content is editable. Data attributes can store custom data privately.

Uploaded by

parlomiti_
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML Global Attributes

❮ Previous Next ❯

HTML attributes give elements meaning and context.

The global attributes below can be used on any HTML element.

HTML Global Attributes


= Attribute added in HTML5.

Attribute Description

accesskey Specifies a shortcut key to activate/focus an element

class Specifies one or more classnames for an element (refers

contenteditable Specifies whether the content of an element is editable o

contextmenu Specifies a context menu for an element. The context me


element

data-* Used to store custom data private to the page or applica


dir Specifies the text direction for the content in an element

draggable Specifies whether an element is draggable or not

dropzone Specifies whether the dragged data is copied, moved, or

hidden Specifies that an element is not yet, or is no longer, rele

id Specifies a unique id for an element

lang Specifies the language of the element's content

spellcheck Specifies whether the element is to have its spelling and

style Specifies an inline CSS style for an element

tabindex Specifies the tabbing order of an element

title Specifies extra information about an element

translate Specifies whether the content of an element should be tr

You might also like