Run ยป
<!DOCTYPE html> <html> <head> <style> table { border-collapse: collapse; width: 100%; border: 1px solid grey; } th, td { text-align: left; padding: 8px; } th { background-color: #4CAF50; color: white; } </style> </head> <body> <h2>Colored Table Header</h2> <table> <tr> <th>Name</th> <th>Roll No</th> <th>City</th> </tr> <tr> <td class="bottom_align">Divya</td> <td class="bottom_align">001</td> <td class="bottom_align">Mumbai</td> </tr> <tr> <td class="top_align">Hritika</td> <td class="top_align">002</td> <td class="top_align">Pune</td> </tr> </table> </body> </html>