What are some common pitfalls when using tables for website layout in PHP?

One common pitfall when using tables for website layout in PHP is that it can lead to messy and non-responsive designs. To solve this issue, it is recommended to use CSS for layout purposes instead of relying on tables.

<!DOCTYPE html>
<html>
<head>
    <style>
        /* CSS for layout */
        .container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div>Content 1</div>
        <div>Content 2</div>
    </div>
</body>
</html>