Q1. How do you add borders to tables?
Use border property on table, th, td: border: 1px solid black;
Q2. What does border-collapse do?
border-collapse: collapse merges adjacent table borders into single borders. Separate keeps them apart.
Q3. How do you add space between table cells?
Use border-spacing property when border-collapse is separate. Also can use padding inside cells.
Q4. How do you style table headers differently?
Target th elements specifically: th { background-color: #f2f2f2; font-weight: bold; }
Q5. How do you make tables responsive?
Use overflow-x: auto on container, or display: block with media queries for small screens.
