Whats the point of DOCTYPE?

后端 未结 8 1063
夕颜
夕颜 2020-12-06 17:56

I know that different doctypes are essentially about how compliant the html is, but what difference does it make what doctype you specify? Do browsers handle the same code d

8条回答
  •  天涯浪人
    2020-12-06 18:45

    The DOCTYPE declaration is required to be compliant to SGML, the language HTML is an instance of.

    The DOCTYPE declaration is used by some browsers to trigger different rendering modes.

提交回复
热议问题