New in HTML5

The DOCTYPE declaration for HTML5 is very simple:

<!DOCTYPE html>

The character encoding (charset) declaration is also very simple:

<meta charset="UTF-8">

The default character encoding in HTML5 is UTF-8.

A sample HTML5 document:

<!DOCTYPE html>
  <html>
    <head>
      <meta charset="UTF-8">
      <title>Title of the document</title>
    </head>
    <body>
      Content of the document......
    </body>
  </html>
Back button Table of Contents Next button