我期待找到语言的语言学。

时间:2017-08-30 04:08:30

标签: html5

由于doctype不是HTML页面的主要根元素,那么我所拥有的问题是什么语言!doctype?

2 个答案:

答案 0 :(得分:1)

<!DOCTYPE>声明是自包含指令,它告诉用户代理(通常通过引用)什么类型的标记(SGML / XML / HTML等)以及什么版本的标记文档是用。

进一步阅读:

https://en.wikipedia.org/wiki/Document_type_declaration

答案 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.

https://www.w3schools.com/tags/tag_doctype.asp