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.
Owner of Juapo2Services
Looking for quality web hosting? Look no further than Arvixe Web Hosting!