can php be embedded in html?
When you embed PHP code in an HTML file, you need to use the . php file extension for that file, so that your web server knows to send the file to PHP for processing. ... When you have PHP code embedded in an HTML page, you can think of that page as a PHP program.