How can HTML scripts be executed using PHP?

To execute HTML scripts using PHP, you can use the `echo` function in PHP to output HTML code. This allows you to dynamically generate HTML content within your PHP script and have it rendered on the webpage.

<?php
echo "<h1>Hello, World!</h1>";
echo "<p>This is a paragraph written in HTML within a PHP script.</p>";
?>