Show Output
<!DOCTYPE html> <html lang="en"> <head> <title>Example of HTML col Tag</title> <style type="text/css"> table, td, th { border: 1px solid gray; } </style> </head> <body> <table> <colgroup> <col style="background-color:#adff2f;"> <col span="2" style="background-color:#f0e68c;"> </colgroup> <tr> <th>No.</th> <th>Name</th> <th>Email</th> </tr> <tr> <td>1</td> <td>John Carter</td> <td>johncarter@mail.com</td> </tr> <tr> <td>2</td> <td>Peter Parker</td> <td>peterparker@mail.com</td> </tr> <tr> <td>3</td> <td>John Rambo</td> <td>johnrambo@mail.com</td> </tr> </table> </body> </html>