<?php
$foo = 'writing code';
echo "<h1 class=\"hstyle4\">Hello World</h1>";
echo "<p>I am {$foo}, specifically HTML, inside of PHP using echo.";
echo 'but I could just as easily have broken it into html and used only what I needed.</p>';
<h1 class="hstyle4">Hello World</h1><p>I am writing code, specifically HTML, inside of PHP using echo.but I could just as easily have broken it into html and used only what I needed.</p>