Whats the point of DOCTYPE?

后端 未结 8 1042
夕颜
夕颜 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:29

    The declaration is not an XHTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.

    The declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers render the content correctly.

提交回复
热议问题