What is the correct syntax for including a PHP document within an HTML document?
When including a PHP document within an HTML document, you can use the `include` or `require` statement in PHP to bring the contents of the PHP file into the HTML file. This allows you to separate your code into different files for better organization and reusability. To include a PHP file within an HTML file, you need to use the PHP opening and closing tags `<?php` and `?>` within the PHP file, and then use the `include` or `require` statement in the HTML file to include the PHP file. ```html <!DOCTYPE html> <html> <head> <title>Include PHP in HTML</title> </head> <body> <h1>Welcome to my website!</h1> <?php include 'header.php'; ?> <p>This is the content of the page.</p> <?php include 'footer.php'; ?> </body> </html> ```