HTML Documents

HTML Documents

  • Must start with a document type declaration: <!DOCTYPE html>.
  • The HTML document itself begins with <html> and ends with </html>.
  • The visible part of the HTML document is between <body> and </body>.

Omitting , and

//the following code will validate as HTML5

<!DOCTYPE html>
<title>Page Title</title>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

According to the HTML5 standard; the <html>, the <body>, and the <head> tag can be omitted.

HTML Documents — Structure map

Clickable & Draggable!

HTML Documents — Related pages: