Same HTML. New file: styles.css. CSS is paint โ colors, space, type. Link it from the head of index.html:
Live result
Step 1 โ ranch colors
body {
font-family: Georgia, "Times New Roman", serif;
margin: 0;
background: #f3ead3;
color: #2b2118;
}
header {
background: #3d2914;
color: #f3ead3;
text-align: center;
padding: 32px 16px;
}
h1 { margin: 0 0 8px; }
.tagline { margin: 0; font-style: italic; }
main { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
footer {
text-align: center;
padding: 20px;
font-size: 0.9rem;
color: #5c4a3a;
}
Step 2 โ the table as a record card
table {
width: 100%;
border-collapse: collapse;
background: #fffaf0;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
th, td {
text-align: left;
padding: 10px 12px;
border-bottom: 1px solid #e2d3b3;
}
th {
background: #6b4f2a;
color: #fffaf0;
}
tr:hover td { background: #f6e7c1; }
Save both files. Refresh the browser. If the header went dark brown and the table looks like a card, you painted it.