- 2

Does HTML code generally go inside of a PHP file instead of in an HTML file?

I'm working on a project for a class and I'm wondering why the HTML code is placed in the PHP file. I know that with PHP, the website updates as any changes are made.

3rd Dec 2017, 4:17 AM
Scarlett Jones
Scarlett Jones - avatar
1 ответ
0
because part of the rational behind the use of PHP is to dynamically generate some HTML based on conditions and different checks. A PHP page with no HTML would be a blank page.
3rd Dec 2017, 4:32 AM
CHMD
CHMD - avatar