The <!doctype> declaration is not and html tag, why? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

The <!doctype> declaration is not and html tag, why?

9th Feb 2019, 2:51 AM
Siboniso Liberty Majola
Siboniso Liberty Majola - avatar
2 Réponses
+ 5
//The <!DOCTYPE> declaration is not an HTML tag because it is an instruction to the web browser about what version of HTML the page is written in.
9th Feb 2019, 3:01 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
So what is html based on then if nit DTD nor SGML
9th Feb 2019, 3:06 AM
Siboniso Liberty Majola
Siboniso Liberty Majola - avatar