What is the DOCTYPE Used for Starting HTML5 Code?


As we all may know, HTML5 era is already here and day by day browsers are becoming more compatible, therefore, we, developers, need to start making our websites HTML5 friendly. Today I’ll tell you the very basic to make our site be read as HTML5.

The Doctype that you see on every page is mainly the big-not-rememberable HTML4 doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

In HTML5, the Doctype was simplified to just two words. To declare our document as HTML5, we simply need to add the following code at the start of our script, before the <html> tag:

<!DOCTYPE html>

Remember the DOCTYPE is cAsE sEnSiTiVe.

So that’s it, that is how HTML5 code is started. Remember that it is better to start learning HTML5 right now that it is not full compatible by modern browsers, because later, it can become harder to move from HTML4. Any question, comments, suggestions, please do not hesitate to contact me.

Best Regards,


Owner of Juapo2Services

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , | Posted under Programming/Coding | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *