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>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title></title>
</head>
<body>

</body>
</html>

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

HTML: A standard HTML5 page

This entry is part 1 of 34 in the series HTML

HTML stands for Hyper Text Markup Language. ┬áIt’s purpose is to use tags or markups to formulate a web page.

I have been using WebStorm from jetBrains and each time I create a new HTML page, it gives the following template.

You can use it likewise to create a HTML5 page.

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>
Try The HTML

The doctype declaration will tell the browser that this is for HTML5.