What are the potential pitfalls of placing PHP code outside of the <html> tags in a web page?
Placing PHP code outside of the <html> tags in a web page can cause syntax errors or unexpected output to be displayed on the page. To avoid this issue, all PHP code should be enclosed within <?php ?> tags and placed within the <html> tags.
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<?php
// PHP code here
echo "Hello, World!";
?>
</body>
</html>