html element constitutes the root of all well formed HTML documents and is supposed to wrap all other elements between its tags.
lang attribute has a particular relevance when used in this element, as it defines the language of the entire document. This is particulary important for users relying on speech synthesisers, in the determination of the correct pronunciation.
Below is an example of a simple document. As expected, the
html element is wrapping all other elements. The
!DOCTYPE declaration, not being an element, stays outside.
<!DOCTYPE html> <html> <head> <title>Jhon Weilers' place</title> </head> <body> <h1>Welcome!</h1> <p>Welcome to Jhon Weilers' place...</p> </body> </html>
The location of a cache manifest document, specifying which resources the user agent should keep in the cache for offline access. The benefits of this attribute are particularly appreciated when developing web applications, as it improves speed and allows offline executions.
manifest attribute is in the process of being removed from the standard. Its use at this time is highly discouraged.
The version of the standard used to compose the document.
This attribute has become obsolete in HTML5 and, therefore, its use is no longer valid. The version of the standard the document is complying with should be specified with the
For information about global attributes refer to this list of global attributes in HTML5.
For information about global events refer to this list of global events in HTML5.