What are the drawbacks of using tables for layout in PHP forms?

Using tables for layout in PHP forms can make the code harder to maintain and less responsive to different screen sizes. It is better to use CSS for layout purposes to ensure a more flexible and efficient design.

<!DOCTYPE html>
<html>
<head>
    <style>
        form {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        input {
            margin: 5px;
        }
    </style>
</head>
<body>
    <form method="post" action="process_form.php">
        <input type="text" name="username" placeholder="Username">
        <input type="password" name="password" placeholder="Password">
        <input type="submit" value="Submit">
    </form>
</body>
</html>