Prev Demo
Table With Background Color
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <style> table { border-collapse: collapse; width: 50%; } th, td { text-align: left; padding: 8px; } th { background-color: #4CAF50; color: white; } tr{ background-color:red; color:pink; } </style> </head> <body> <h2>Table with background color </h2> <table> <tr> <th>TECHFUNDA</th> <th>DOTNETFUNDA</th> <th>ITFUNDA</th> </tr> <tr> <td>Authors</td> <td>Moderators</td> <td>ADMIN</td> </tr> </table> </body> </html>
Note: We DO NOT save your trial code in our database.
Output