由于doctype不是HTML页面的主要根元素,那么我所拥有的问题是什么语言!doctype?
答案 0 :(得分:1)
<!DOCTYPE>
声明是自包含指令,它告诉用户代理(通常通过引用)什么类型的标记(SGML / XML / HTML等)以及什么版本的标记文档是用。
进一步阅读:
答案 1 :(得分:0)
我认为w3schools非常好:
In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly.