<! DOCTYPE html>
It is a declaration that instructs browser about what version of HTML is used in creating the web-page.
Though it is not mandatory to write it in the html document but it is a good practice to include it. suppose we have not specified html version then the browser will itself assume a version, now it may happen that we have created a web-page using html-5 and someone is accessing it using an older browser which works on html-4 then some of our tags will not be rendered leading to some errors.
Comments
Post a Comment