Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
table, td {
    border: 1px solid black;
}


tr.collapse {
    visibility: collapse;
}

</style>
</head>
<body>

<table>
  <tr>
    <td>Peter</td>
    <td>Griffin</td>
  </tr>
  <tr class="collapse">
    <td>Lois</td>
    <td>Griffin</td>
  </tr>
</table>

<p><b>Note:</b> IE8 and earlier support visibility:collapse only if a !DOCTYPE is specified.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy