Do I need a !DOCTYPE declaration in a php file with html?

前端 未结 10 1237
面向向阳花
面向向阳花 2020-12-15 03:16

I have a php file with my website content in it. The file needs to be .php because i get some variables first and then use it later in the website content. Like this example

10条回答
  •  感动是毒
    2020-12-15 03:50

    You should always put a Doctype in your html, no matter how the html is built.

    w3 doctype list

提交回复
热议问题