Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> table { width: 100%; border-collapse: collapse; } table, th, td { border: 1px solid black; } thead { background-color: #1c87c9; color: #ffffff; } th { text-align: center; height: 50px; } tbody tr:nth-child(odd) { background: #ffffff; } tbody tr:nth-child(even) { background: #f4f4f4; } </style> </head> <body> <table> <thead> <tr> <th>Überschrift</th> <th>Überschrift</th> </tr> </thead> <tbody> <tr> <td>Irgendein Text</td> <td>Irgendein Text</td> </tr> <tr> <td>Irgendein Text</td> <td>Irgendein Text</td> </tr> <tr> <td>Irgendein Text</td> <td>Irgendein Text</td> </tr> <tr> <td>Irgendein Text</td> <td>Irgendein Text</td> </tr> </tbody> </table> </body> </html>