doctype html means | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

doctype html means

11th Jul 2017, 8:15 AM
4 Answers
+ 5
it is gives representation to the browser that it is a html 5 document.
11th Jul 2017, 9:09 AM
Vansh - avatar
+ 4
@Maxel Varley wrote: << doctype means you are using html 5, if you dont add doctype mean you are using html 4.01. >> Wrong... If no use of <!doctype>, browsers can not guess wich version is used, and would turn into a 'quircks mode' with older standard basics than Html4 (when there was mostly Netscape and IE as browser choice and they don't provide much compatibility between them ^^ Html4 have specific uggly <!doctype>s dedicated to each of its different flavours, and has been simplified for Html5, but not providing a <!doctype> declaration, will absolutly not turn implicitly your document to be parsed as Html4 specifications :P
11th Jul 2017, 8:19 AM
visph - avatar
+ 3
DOCTYPE basically tells you what type of document are you about write.. like for XML DTD file we write <!DOCTYPE note >
11th Jul 2017, 8:21 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
HTML Version
11th Jul 2017, 8:34 AM
Bravo Jaka Buana
Bravo Jaka Buana - avatar