<table>
    <caption>국가별 수도</caption>
    <tr>
        <th scope="row">프랑스</th> <!-- row -->
        <td>파리</td>
    </tr>
    <tr>
        <th scope="row">대한민국</th> <!-- row -->
        <td>서울</td>
    </tr>
    <tr>
        <th scope="row">일본</th> <!-- row -->
        <td>도쿄</td>
    </tr>
</table>
th, td {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습
<table>
    <caption>분식점 메뉴</caption>
    <tr>
        <th scope="col">메뉴</th> <!-- col -->
        <th scope="col">가격</th> <!-- col -->
    </tr>
    <tr>
        <td>라면</td>
        <td>5,000</td>
    </tr>
    <tr>
        <td>김밥</td>
        <td>4,000</td>
    </tr>
</table>
th, td {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습
<table>
    <tr>
        <th rowspan="3" scope="rowgroup">주간 운동 시간</th> <!-- rowgroup -->
        <th scope="row">월요일</th>
        <td>1시간</td>
    </tr>
    <tr>
        <th scope="row">화요일</th>
        <td>1.5시간</td>
    </tr>
    <tr>
        <th scope="row">수요일</th>
        <td>2시간</td>
    </tr>
</table>
th, td {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습
<table>
    <tr>
        <th colspan="2" scope="colgroup">주간 운동 시간</th> <!-- colgroup -->
    </tr>
    <tr>
        <th scope="row">월요일</th>
        <td>1시간</td>
    </tr>
    <tr>
        <th scope="row">화요일</th>
        <td>1.5시간</td>
    </tr>
    <tr>
        <th scope="row">수요일</th>
        <td>2시간</td>
    </tr>
</table>
th, td {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습