Page 71 - HTML5
P. 71
Chapter 14: Global Attributes
Parameters
Attribute Description
class Defines one or more class names for an element. See Classes and IDs.
contenteditable Sets whether the content of an element can be edited.
contextmenu Defines a context menu shown when a user right-clicks an element.
dir Sets the text direction for text within an element.
draggable Sets whether an element can be dragged.
hidden Hides an element not currently in use on the page.
id Defines a unique identifier for an element. See Classes and IDs.
Defines the language of an element's content and its text attribute values.
lang
See Content Languages.
spellcheck Sets whether to spell/grammar check the content of an element.
style Defines a set of inline CSS styles for an element.
Sets the order in which elements on a page are navigated by the tab
tabindex
keyboard shortcut.
Defines additional information about an element, generally in the form of
title
tooltip text on mouseover.
translate Defines whether to translate the content of an element.
Remarks
Global attributes are simply attributed which can be applied to any element in the entire document.
Examples
Contenteditable Attribute
<p contenteditable>This is an editable paragraph.</p>
https://riptutorial.com/ 55

