表格在safari上无法正确格式化

I have the following php code, which gathers data from a database, and displays it in a table. It works fine when used in chrome, But is not working properly, i.e, the border, rows etc.. are not being displayed, like the table tag itself is being disregarded. Here is the code, I have.

<html>
<head>
    <title> Reviews List. </title>
</head>
<body>
    <?php
        include 'settings.php';

        if (!isset($dbc)){
            $dbc = new mysqli(DB_HOST , DB_USER , DB_PASSWORD , DB_NAME) or die("Cannot connect to the database.");
        }
        $query = "SELECT * FROM reviews";
        $result = $dbc->query($query) or die ("Cannot query");
    ?>
        <table id="review_table" border="1" width="1">
    <?php
        while ($row = mysqli_fetch_assoc($result)){
        echo '<tr>';
        echo '<td>';
        echo $row['id'];
        echo '</td>';
        echo '<td>';
        echo $row['pid'];
        echo '</td>';
        echo '<td>';
        echo $row['publish'];
        echo '</td>';
        echo '</tr>';
        }       
    ?>
        </table>
</body>

Here are the screen shots of the page viewed in safari and in chrome.

Safari: enter image description here

I did try to click on the toggle formatting button, which did nothing.

Chrome: enter image description here

Remove border and width from table tag and add this css instead.

#review_table {
  border: 1px solid #000;  
  border-collapse: collapse;
}

#review_table td {
  border: 1px solid #000;
}

You are missing the <tbody> tag