<! doctype html > for what? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

<! doctype html > for what?

I'm still learning today

5th Jul 2018, 2:12 PM
Anggi arfa shafani
Anggi arfa shafani - avatar
27 Answers
+ 14
continue with Shudarshan Rai 👑 . . . . it is used when you want to use HTML5 and it's elements.
5th Jul 2018, 2:16 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 7
<!DOCTYPE html> is mandatory, it is to declare the type of this document.
5th Jul 2018, 3:17 PM
program
program - avatar
+ 4
<! doctypehtml > describe the type of document!
5th Jul 2018, 2:15 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
If you do not declare the type of document. You will go to the oldest version.
6th Jul 2018, 4:02 PM
program
program - avatar
+ 3
Thank's bro
5th Jul 2018, 2:34 PM
Anggi arfa shafani
Anggi arfa shafani - avatar
+ 3
<!DOCTYPE html> is a required text for HTML 5 web programming. It is important to display the new html5 tags such as nav, article, etc
5th Jul 2018, 8:08 PM
King Emma 👑
King Emma 👑 - avatar
+ 3
its tell about version of html, this tag mean html with html5 version
6th Jul 2018, 1:33 AM
Rishabh Singh
Rishabh Singh - avatar
+ 3
because you do. (its to ise html5)
6th Jul 2018, 3:48 PM
George
George - avatar
+ 3
<!Doctype html> basically tells the browser that which type of html u r using.. thats all
6th Jul 2018, 11:21 PM
Ali Hassan
Ali Hassan - avatar
+ 3
<!DOCTYPE html> tells your web browser that you are using the latest version of HTML, HTML5.
7th Jul 2018, 12:47 AM
Rowsej
Rowsej - avatar
+ 3
it is used for to detect the document is a html document to the computer
10th Jul 2018, 6:30 AM
Rakesh
Rakesh - avatar
+ 2
it is to declare that the code is HTML and not like python or Java (I know that wont happen)
5th Jul 2018, 8:55 PM
n3m0
n3m0 - avatar
+ 2
the above is the begining an HTML document which houses the elements for your website structure.
6th Jul 2018, 2:50 AM
Kelly Faughey
Kelly Faughey - avatar
+ 2
I want learn html
6th Jul 2018, 8:06 AM
yousif RONALDO
yousif RONALDO - avatar
+ 2
باید چکار کنم
6th Jul 2018, 12:30 PM
1379
+ 2
doctype is used to declare the document type. In your case that is html.
6th Jul 2018, 6:45 PM
Abraham Samuel
Abraham Samuel - avatar
+ 2
i think it's just useful for browsers and the type of document is specific from the file type before the coding is started
7th Jul 2018, 8:56 AM
hamid
hamid - avatar
+ 1
<!DOCTYPE html> is the decleration for HTML5. It is mandatory.
7th Jul 2018, 12:33 PM
Ray
 Ray - avatar
+ 1
我好菜
9th Jul 2018, 2:27 PM
中庸47
中庸47 - avatar