What are the differences between using frames, tables, and div-layers in PHP for website layout?

Using frames for website layout is outdated and not recommended as it can cause issues with search engine optimization and accessibility. Tables were traditionally used for layout but are now considered outdated for this purpose as well. Div-layers, also known as div tags, are the preferred method for website layout as they offer more flexibility and control over the design.

<!DOCTYPE html>
<html>
<head>
    <title>Website Layout</title>
    <style>
        .container {
            width: 80%;
            margin: 0 auto;
        }
        .header {
            background-color: #333;
            color: #fff;
            padding: 10px;
        }
        .content {
            padding: 10px;
        }
        .footer {
            background-color: #333;
            color: #fff;
            padding: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Header</h1>
        </div>
        <div class="content">
            <p>Main content goes here</p>
        </div>
        <div class="footer">
            <p>Footer content goes here</p>
        </div>
    </div>
</body>
</html>