title: PHP or HTML first or does it matter?
body: <p><strong>I have a possible stupid question, but I'll ask it anyway.</strong></p>
  
  <p>Does it matter what goes first, PHP or HTML code?</p>
  
  <p>For example: Does PHP go before HTML, after HTML or does it matter at all?</p>
  
  <pre><code>&lt;?php
  
  echo "This is text";
  
  ?&gt;
  
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;font size="2"&gt;This is text&lt;/font&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Or:</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;font size="2"&gt;This is text&lt;/font&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;?php
  
  echo "This is text";
  
  ?&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Or:</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;?php
  
  echo "This is text";
  
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>