+ 7

[HTML] standard DOCTYPE ?

I have a question about doctype. I learn programming with my friend. Yesterday, I saw some of his stuff. I usually use !DOCTYPE htm but he always use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" I asked him 'Why do you use so verbose doctype?' and he said 'Hey It's standard. It fixes some compatibility problems.' But I don't know whether it is standard. Is my friend's doctype really standard?

2nd Jun 2017, 1:49 AM
êč€ì •ì œ(Legacy)
êč€ì •ì œ(Legacy) - avatar
2 Answers
+ 7
@Victor Thanks for information.
2nd Jun 2017, 3:29 AM
êč€ì •ì œ(Legacy)
êč€ì •ì œ(Legacy) - avatar
+ 2
Yes. Verbose is not the term to use. For complete information on how to declare an html doctype go to: https://www.w3schools.com/tags/tag_doctype.asp
2nd Jun 2017, 3:19 AM
Victor
Victor - avatar