How To Embed PHP With The HTML?
Let’s write our first php program with hello world to simply show how we can embed the html with the php code. To embed the php code within the body of the html is very simple.
<HTML>
<HEAD>
My first <a class=”zem_slink” href=”http://php.net/” title=”PHP” rel=”homepage”>PHP</a> program
</HEAD>
<BODY>
<?php
print(“Hello, beautiful world<BR><BR>\n”);
phpinfo();
?>
</BODY>
</HTML>
