Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Table Example</title> <style> table { border-collapse: collapse; width: 100%; } th, td { border: 1px solid #ccc; padding: 10px; } table.alt tr:nth-child(even) { background-color: #eee; } table.alt tr:nth-child(odd) { background-color: #fff; } </style> </head> <body> <table class="alt"> <tr> <th>Table Header</th> <th>Table Header</th> </tr> <tr> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <td>Table cell</td> <td>Table cell</td> </tr> </table> </body> </html>