Table Border colorful

Previous page                                                  Next page
Table border in Colorful
<html>
<head>
<style>
table, th, td {
    border: 10px solid red;
    border-collapse: collapse;
}
th, td {
    padding: 25px;
    text-align: left;   
}
</style>
</head>
<body>

<h1>Cell that spans two columns:</h1>
<table style="width:50%">
  <tr>
    <th>Name</th>
    <th colspan="2">Contact No</th>
  </tr>
  <tr>
    <td>karan</td>
    <td>1234567890</td>
    <td>1234567899</td>
  </tr>
</table>

</body>
</html>
OUTPUT 




No comments:

Post a Comment