html tr 태그
<tr> 태그와 내부에 배치된 <td>, <th> 태그들
<table>
    <caption>분식점 메뉴</caption>
    <tr> <!-- 테이블의 셀(td 및 th 태그) tr의 자식으로 마크업해야 합니다! -->
        <th scope="col">메뉴</th>
        <th scope="col">가격</th>
    </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;
}
실제 적용된 모습
colspan
colspan
<table>
    <tr>
        <th colspan="2" scope="colgroup">주간 운동 시간</th>
    </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;
}
실제 적용된 모습
rowspan
rowspan
<table>
    <tr>
        <th rowspan="3" scope="rowgroup">주간 운동 시간</th>
        <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>
    <caption>국가별 수도</caption>
    <tr>
        <th scope="row">미국</th>
        <td>워싱턴</td>
    </tr>
    <tr>
        <th scope="row">대한민국</th>
        <td>서울</td>
    </tr>
    <tr>
        <th scope="row">일본</th>
        <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>
        <th scope="col">가격</th>
    </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>
        <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>
    </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;
}
실제 적용된 모습
<table>
    <tr>
        <th rowspan="2" id="h">Homework</th>
        <th colspan="3" id="e">Exams</th>
        <th colspan="3" id="p">Projects</th>
    </tr>
    <tr>
        <th id="e1" headers="e">1</th>
        <th id="e2" headers="e">2</th>
        <th id="ef" headers="e">Final</th>
        <th id="p1" headers="p">1</th>
        <th id="p2" headers="p">2</th>
        <th id="pf" headers="p">Final</th>
    </tr>
    <tr>
        <td headers="h">15%</td>
        <td headers="e e1">15%</td>
        <td headers="e e2">15%</td>
        <td headers="e ef">20%</td>
        <td headers="p p1">10%</td>
        <td headers="p p2">10%</td>
        <td headers="p pf">15%</td>
    </tr>
</table>
td, th {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습
<table>
    <caption>Car Models, Manufacturing Years, and Prices</caption>
    <tr>
        <th rowspan="2" id="model" abbr="Model" scope="col">Model of car</th>
        <th colspan="3" id="year" abbr="Year" scope="colgroup">Year of manufacture</th>
        <th colspan="3" id="price" abbr="Price" scope="colgroup">Price of car</th>
    </tr>
    <tr>
        <th id="y1" abbr="Y1" scope="col">Year 1</th>
        <th id="y2" abbr="Y2" scope="col">Year 2</th>
        <th id="y3" abbr="Y3" scope="col">Year 3</th>
        <th id="p1" abbr="P1" scope="col">Price 1</th>
        <th id="p2" abbr="P2" scope="col">Price 2</th>
        <th id="p3" abbr="P3" scope="col">Price 3</th>
    </tr>
    <tr>
        <td headers="model">Sedan</td>
        <td headers="year y1">2020</td>
        <td headers="year y2">2021</td>
        <td headers="year y3">2022</td>
        <td headers="price p1">$20,000</td>
        <td headers="price p2">$22,000</td>
        <td headers="price p3">$24,000</td>
    </tr>
    <tr>
        <td headers="model">SUV</td>
        <td headers="year y1">2019</td>
        <td headers="year y2">2020</td>
        <td headers="year y3">2021</td>
        <td headers="price p1">$30,000</td>
        <td headers="price p2">$32,000</td>
        <td headers="price p3">$34,000</td>
    </tr>
</table>
td, th {
    padding: 0.5em 1em;
    border: 1px solid gray;
}
th {
    background-color: #e6e6e6;
}
실제 적용된 모습