+ 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 Respostas
+ 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