What are the implications of removing HTML, head, and body tags from included files in PHP scripts?

Removing HTML, head, and body tags from included files in PHP scripts can lead to invalid HTML structure and potentially cause rendering issues in the browser. To solve this issue, include the necessary HTML structure within the main PHP file and only include the content of the included files within the body tags.

<!DOCTYPE html>
<html>
<head>
    <title>Your Page Title</title>
</head>
<body>
    <?php include 'included_file.php'; ?>
</body>
</html>