Cover Image for HTML Global Attributes
81 views

HTML Global Attributes

HTML Global Attributes are attributes that can be used on any HTML element. These attributes provide common features that can be applied to any element.

Here are some of the commonly used HTML Global Attributes:

  1. id – Used to specify a unique identifier for an element.
  2. class – Used to specify one or more class names for an element.
  3. style – Used to specify inline styles for an element.
  4. title – Used to specify a title or tooltip for an element.
  5. data-* – Used to store custom data private to the page or application.
  6. accesskey – Used to specify a keyboard shortcut for an element.
  7. contenteditable – Used to specify whether the content of an element is editable.
  8. tabindex – Used to specify the tab order of an element.
  9. hidden – Used to specify that an element should not be displayed.
  10. lang – Used to specify the language of an element’s content.

These attributes can be applied to any HTML element and are not specific to any particular tag.

YOU MAY ALSO LIKE...

The Tech Thunder

The Tech Thunder

The Tech Thunder


COMMENTS