Php code inside html or html inside php?
<p>I am writing code in php but, i am confuse in following coding styles:</p>

<pre><code>&lt;html&gt;
   &lt;head&gt;&lt;/head&gt;
   &lt;body&gt;
    &lt;?php echo 'Hello World'; ?&gt;
    &lt;div&gt;This is another&lt;/div&gt;
    &lt;?php echo 'hello again'; ?&gt;
   &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>OR</p>

<pre><code>&lt;?php
  echo '&lt;html&gt;
   &lt;head&gt;&lt;/head&gt;
   &lt;body&gt;
    Hello World
    &lt;div&gt;This is another&lt;/div&gt;
    hello again
   &lt;/body&gt;
 &lt;/html&gt;';
?&gt;
</code></pre>

<p>And, Which is better in complex programming?</p>
