A vocabulary and associated APIs for HTML and XHTML
W3C Proposed Recommendation 16 September 2014 ← 3 Semantics, structure, and APIs of HTML documents – Table of contents – 4.2 Document metadata → 4 The elements of HTML 4.1 The root element 4.1.1 Thehtml
element
head
element followed by a body
element.
manifest
— Application cache manifest
html
element's start tag can be omitted if the first thing inside the html
element is not a comment.
html
element's end tag can be omitted if the html
element is not immediately followed by a comment.
interface HTMLHtmlElement : HTMLElement {};
The html
element represents the root of an HTML document.
Authors are encouraged to specify a lang
attribute on the root html
element, giving the document's language. This aids speech synthesis tools to determine what pronunciations to use, translation tools to determine what rules to use, and so forth.
The manifest
attribute gives the address of the document's application cache manifest, if there is one. If the attribute is present, the attribute's value must be a valid non-empty URL potentially surrounded by spaces.
The manifest
attribute only has an effect during the early stages of document load. Changing the attribute dynamically thus has no effect (and thus, no DOM API is provided for this attribute).
For the purposes of application cache selection, later base
elements cannot affect the resolving of relative URLs in manifest
attributes, as the attributes are processed before those elements are seen.
The window.applicationCache
IDL attribute provides scripted access to the offline application cache mechanism.
The html
element in the following example declares that the document's language is English.
<!DOCTYPE html> <html lang="en"> <head> <title>Swapping Songs</title> </head> <body> <h1>Swapping Songs</h1> <p>Tonight I swapped some of the songs I wrote with some friends, who gave me some of the songs they wrote. I love sharing my music.</p> </body> </html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4