I'm just starting out with PHP and it doesn't show an h1 in my index.php. I am using XAMPP.
<h1>Codigo HTML</h1>
<?php
echo "<h1>Codigo PHP</h1>";
?>
That's my code, and it shows it as such in the index.php. I'm also new here, in case I make a mistake asking.
Make sure you are running from localhost, your code works fine
Try this:
Remember that you must close and open the tags for php well, your error was there