Does my HTML5 doctype have to be on the VERY first line?

后端 未结 6 1211
心在旅途
心在旅途 2020-12-18 18:32

I\'ve always wondered whether whitespace before a DOCTYPE matters, but I can\'t seem to find any definitive information on the web. People say not to do it,

6条回答
  •  一生所求
    2020-12-18 18:33

    Yes! comments and spaces may come first.

    Here's the relevant section from the official HTML Specification

提交回复
热议问题