HTML Collapsed Borders Table Code For Website - Learn About Website | DaddyFile

0

An HTML Table with Collapsed Borders Explain

If you want the borders to collapse into one border, add CSS border-collapse.



Html Code:

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
</style>
</head>
<body>

<table style="width:100%">
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

</body>
</html>





Html Code Result:

Post a Comment

 
Top