Let's say you wanted to write a sentence in bold letters, and that sentence contented a variable. In this first method we will switch between PHP and HTML.
<?php
$love = "cake"; ?>
<b>I love <?php echo $love ?></b>
In this second method we never turn PHP off, we just echo our HTML.
Both with give you the same result: I love cake
Depending on how much HTML and how much PHP you have in any given file, or your personal preference, you may choose one method or the other.
$love = "cake";
echo "<b>I love $love</b>"
?>

