O'Reilly logo

HTML5: Your visual blueprint™ for designing rich web pages and applications by Adam McDaniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required