How can the placement of the include command within the HTML structure affect where the included file is displayed on the page?

The placement of the include command within the HTML structure can affect where the included file is displayed on the page. If the include command is placed before the HTML content, the included file will be displayed before the rest of the content. If it is placed within the HTML content, the included file will be displayed at the location of the include command within the HTML structure.

<!DOCTYPE html>
<html>
<head>
    <title>Include Example</title>
</head>
<body>
    <?php include 'header.php'; ?> <!-- Include file within the body -->
    
    <h1>Welcome to my website!</h1>
    <p>This is some content on the page.</p>
    
    <?php include 'footer.php'; ?> <!-- Include file within the body -->
</body>
</html>