What are the best practices for structuring a webpage using DIVs in PHP?

When structuring a webpage using DIVs in PHP, it is best practice to separate the structure and styling of the page by using CSS. This allows for cleaner and more maintainable code. You can create separate PHP files for the header, footer, and other reusable components, and include them in your main PHP file using include or require statements.

<?php include 'header.php'; ?>

<div id="content">
    <!-- Main content of the webpage -->
</div>

<?php include 'footer.php'; ?>