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 ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.