table { border-collapse: collapse; width: 100%; font-family: sans-serif; } caption { caption-side: top; font-weight: bold; margin-bottom: 0.5em; text-align: left; } th, td { border: 1px solid #ccc; padding: 0.75em; text-align: left; } thead { background-color: #f5f5f5; } tbody tr:nth-child(even) { background-color: #f9f9f9; } tbody tr:hover { background-color: #eef6ff; } tbody tr:focus-within { outline: 2px solid #007acc; background-color: #e0f0ff; } th { background-color: #eaeaea; }