What are the common pitfalls beginners face when trying to integrate PHP code into HTML?

One common pitfall beginners face when integrating PHP code into HTML is not properly enclosing PHP code within `<?php ?>` tags. This can result in PHP code being displayed as plain text on the webpage instead of being executed. To solve this issue, always ensure that PHP code is enclosed within `<?php ?>` tags.

&lt;?php
// Correct way to integrate PHP code into HTML
echo &quot;Hello, World!&quot;;
?&gt;