HTML GLOBAL ATTRIBUTES
Every element in HTML supports a group of global attributes. These enable you to configure elements’ styling, user interaction, writing system, language, and pragmatic data.
The HTML5 specification says browsers should allow global attributes to apply to nonstandard HTML elements. This provides a vital level of forward compatibility: If an HTML5 web browser encounters a post-HTML5 web page, at the very least the newly defined tags can still be stylized and controlled in the JavaScript DOM.
Note that these global attributes do not apply to metadata tags, described in the next section, “HTML Metadata Tags,” but they do implicitly apply to all other HTML tags described in this appendix.
The following are all HTML global attributes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access