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
You should always put a Doctype in your html, no matter how the html is built.
w3 doctype list