In order to include and execute PHP code in your .HTML/.HTM pages, set the PHP as the default handler for these pages. You can easily achieve this by adding the following line to your .htaccess:
AddHandler application/x-httpd-lsphp .php .html .htm .phtml
The PHP code should be valid and placed between PHP opening <?php and closing ?> tags.
If you need help with your HostPapa account, please open a support ticket from your dashboard.