What are the potential pitfalls of using frames in PHP for website layouts?

Using frames in PHP for website layouts can lead to issues such as poor SEO performance, accessibility problems, and difficulties with responsive design. To avoid these pitfalls, it is recommended to use modern CSS techniques like Flexbox or Grid for creating layouts instead of frames.

<!DOCTYPE html>
<html>
<head>
    <title>Responsive Layout</title>
    <style>
        .container {
            display: flex;
            flex-wrap: wrap;
        }
        .box {
            width: 50%;
            padding: 20px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">Content 1</div>
        <div class="box">Content 2</div>
    </div>
</body>
</html>