Skip to content
1

Document

<html> HTML root

The root of every HTML document. Every other element sits inside it.

Live specimen
<!doctype html>
<html lang="en">
  <head>…</head>
  <body>…</body>
</html>

Tip. Always set the lang attribute. Screen readers use it to pick a voice and pronunciation.

Since
HTML 2.0
Implicit role
document
Void
No

Attributes
0

Global attributes only.