What are the potential pitfalls of using tables to layout a website in PHP?

Using tables for layout in a website can lead to issues with responsiveness and accessibility. It can make the website harder to maintain and update, as changes to the layout may require editing multiple table elements. Instead, it is recommended to use CSS for layout purposes, as it provides more flexibility and control over the design.

<!DOCTYPE html>
<html>
<head>
    <style>
        /* CSS for layout */
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
    </style>
</head>
<body>
    <div class="container">
        <p>This is a sample content</p>
    </div>
</body>
</html>