HTML5: The starter document doctype

This entry is part 2 of 34 in the series HTML5

In HTML5, you can start the first line with a nice, easy-to-remember doctype:

<!DOCTYPE html>

I consider the above line the greatest improvement in HTML5.

The doctype is a web standard requirements and it tells the browser that the document should be processed using HTML5 standards.

Here is a sample HTML5 template:

<!DOCTYPE html>
<head lang='en'>
    <meta charset='UTF-8'>


You can always base your HTML5 page on the above template.

Series Navigation<< HTML5: New Elements
HTML5: Character encoding with charset >>

Leave a comment

Leave a Reply