body: The Document Body element
The <body>
HTML element represents the content of an HTML document. There can be only one
- Permitted content: Flow content elements
- Permitted parents: The
<html>
element must be the direct parent
Attributes
role
="generic"
is the implicit value
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]"
Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>The title of my page</title>
</head>
<body>
<h1>Hello</h1>
</body>
</html>