You can't run PHP in .html files because the server does not recognize that as a valid PHP extension unless you tell it to. To do this you need to create a .htaccess file in root web directory
write this code there
AddType application/x-httpd-php .htm .html
This wil tell the server to process .html or .htm files with php extension.