What are some potential pitfalls to be aware of when including PHP scripts within HTML code on a webpage?

One potential pitfall when including PHP scripts within HTML code is that the PHP code may not execute properly if the file extension is not recognized as PHP by the server. To ensure that the PHP code is executed correctly, you can use the `<?php ?>` tags to encapsulate the PHP code within the HTML file.

&lt;?php
// PHP code here
?&gt;