Site icon Tutorial

HTML5 Global attributes

HTML5 Global attributes

Attributes which apply to all elements are called global attributes like accesskey, class, dir, id, lang, style, tabindex and title. There are also several new global attributes in HTML5 as

HTML5 also makes all event handler attributes from HTML4, which take the form onevent-name, global attributes and adds several new event handler attributes for new events it defines. E.g. the play event which is used by the API for the media elements (video and audio).

Exit mobile version