Prev Demo
HTML5
>
Col Tag - Column Properties
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html /> <html> <head> <title>Command</title> <meta charset="UTF-8" /> <style> .colClass { background-color:red; font-size:x-large; } </style> </head> <body> <table> <colgroup> <col /> <col class="colClass" /> </colgroup> <tr> <td>1</td> <td style="color:yellow;background-color:green;">2</td> </tr> <tr> <td>2</td> <td>3</td> </tr> <tr> <td>3</td> <td>4</td> </tr> </table> </body> </html>
Note: We DO NOT save your trial code in our database.
Output