html: The HTML Document / Root element
The <html>
HTML element represents the root (top-level element) of an
HTML document, so it is also referred to as the root element. All other
elements must be descendants of this element.
- Permitted content: One
<head>
element, followed by one<body>
element. - Permitted parents: None. This is the root element of a document.
Attributes
Specific attributes
role
="document"
is the implicit value
lang
="[language-code]"
must define the main language of the document as defined by RFC 5646
Global attributes
role
="[semantic-role]"
accesskey
="[key]"
class
="[classname]"
dir
="[auto/ltr/rtl]"
id
="[identifier]"
itemid
="[global-identifier]"
itemprop
="[property-name]"
itemscope
itemtype
="[url of the vocabulary]"
lang
="[language-code]"
tabindex
="[num index]"
title
="[Title]"