IE 크로스브라우징 관련 내용은 이곳을 클릭해주세요!
th
에만 작성 가능 (th
를 기준으로 column, row방식을 읽는 지 결정되기 때문)scope="col"
: column, 즉 세로 방향 scope="row"
: row, 즉 가로 방향 <table>
<thead>
<th scope="col">Name</th>
<th>Location</th>
<th>Email</th>
<th>Phone number</th>
</thead>
<tbody>
<tr>
<th scope="row">Logan Henderson</th>
<td>Chicago, IL</td>
<td>logan@company.com</td>
<td>938-283-9277</td>
</tr>
<tr>
<th scope="row">Susie Carlson</th>
<td>New York, NY</td>
<td>susie@company.com</td>
<td>394-938-9223</td>
</tr>
...
</tbody>
</table>
tr
에 클래스를 주기보다는 이렇게 주면 훨씬 알아보기 쉬울거 같기도 하다 <colgroup>
<col>
<col span="2" class="batman">
<col span="2" class="flash">
</colgroup>
https://developer.mozilla.org/ko/docs/Web/HTML/Element/colgroup