Edit in JSFiddle

<body>
     <table border="1" align="center" width="40%">
     <caption>Employee Details</caption>
     <colgroup>
     <col span="2" style="background-color:gray;color:silver;">
     <col style="background-color:orange;color:red;">
     </colgroup>
     <tr>
     <th>EmpId</th>
     <th>Name</th>
     <th>Department</th>
     </tr>
     <tr>
     <td>1001</td>
     <td>hitesh</td>
     <td>Testing</td>
     </tr>
     <tr>
     <td>1002</td>
     <td>Sahil</td>
     <td>DBA</td>
     </tr>
     </table>
     </body>