Using HTML tags in echo statements and string concatenation

This tutorial explains how to use HTML tags inside the PHP echo statement. It also explains how to join or ‘concatenate’ strings together. The echo statement is not just used to output simple messages or values of variables, but can also be used to output full HTML code which contains HTML tags, as well as CSS code and even JavaScript code!

Watch the video and then scroll down to see the sample code.

PHP sample code:

 echo "<h3>This is a heading using the HTML h3 heading tag</h3>";
 echo "This string is joined to " , "this other string.";
 echo "</br>This string is on a new line.";