why we use <!DOCTYPE HTML> in starting of HTML .what is <!doctype HTML>
They are both the same. This is like shouting to the browser "I come to you as a HTML 5 file!". This way the browser does not get confused and interpret your HTML 5 wrongly.
Do you get from the edit? It's just a declaration of the type of file.
It is just basically just to tell the computer that you are using html.
I know both are same..question is what is <!doctype HTML> and why we use this
and can we create HTML page without declare this
Ideally, no. You would only be creating issues for browsers, since HTML 5 is not the only markup language. Remember that HTML 4 has a different declaration.
the <!doctype> declaration helps browser display a web page correctly and it is not case sensitive it defines the document type
it s HTML 5 declare and it is not case sensitive