What does the <!doctype html> tag do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does the <!doctype html> tag do?

3rd Oct 2017, 9:42 AM
Bahaa Elboraey
Bahaa Elboraey - avatar
2 Answers
+ 2
It tells you and the browser that you are writing HTML, not something else (like XHTML or others from the XML family)
3rd Oct 2017, 9:54 AM
Schindlabua
Schindlabua - avatar
+ 1
It tells the browser that HTML 5 is being used.
3rd Oct 2017, 1:49 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar