What is the correct way to declare an HTML5 Doctype.

前端 未结 10 1977
一整个雨季
一整个雨季 2020-12-30 18:48

What is the correct way to use start tag when creating with HTML5

IE: HTML 4 Strict is like this



        
10条回答
  •  被撕碎了的回忆
    2020-12-30 18:55

    The clearest most definitive answer of what the standard says seems to be for HTML 5.3 at:

    http://w3c.github.io/html/syntax.html#the-doctype

    Note especially the list-items 1 and 3 which specify that the doctype-statement is case-insensitive. Also note the number of spaces inside the statement can vary.

    And note the clause "A DOCTYPE is a required preamble."

提交回复
热议问题