What is the DOCTYPE Used for Starting HTML5 Code?

Hello,

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>
<html>
 <head>

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,

Richi

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

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 became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

Leave a Reply

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


+ 3 = 8

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>