+ 2
why we use <!DOCTYPE HTML> in starting of HTML .what is <!doctype HTML>
<!doctype HTML>
9 odpowiedzi
+ 6
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.
+ 1
Do you get from the edit? It's just a declaration of the type of file.
+ 1
It is just basically just to tell the computer that you are using html.
0
I know both are same..question is what is <!doctype HTML> and why we use this
0
and can we create HTML page without declare this
0
thnx
0
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.
0
the <!doctype> declaration helps browser display a web page correctly and it is not case sensitive it defines the document type
0
it s HTML 5 declare and it is not case sensitive