To execute php codes <?php ?> in your .html files you need to add the following lines in your .htaccess file
AddType application/x-httpd-php .html
You can make php code in any file executed by replacing the .html with that respective file extension in above code.