Files
html-examples/Writerside/topics/Table.md
2024-06-21 14:14:35 +09:00

62 lines
861 B
Markdown

# 테이블
### table
행과 열로 이루어진 표를 나타냅니다.
### tr
### th
### td
데이터를 포함하는 표의 셀을 정의합니다.
### thead
### tbody
표의 여러 행(<tr>)을 묶어서 표 본문을 구성합니다.
### tfoot
### caption
표의 설명 또는 제목을 나타냅니다.
### colgroup
표의 열을 묶는 그룹을 정의합니다.
### col
표의 열을 나타내며, 열에 속하는 칸에 공통된 의미를 부여할 때 사용합니다.
```html
<table>
<colgroup>
<col>
<col style="background-color: yellow">
</colgroup>
<tr>
<th>Data 1</th>
<th>Data 2</th>
</tr>
<tr>
<td>Calcutta</td>
<td>Pizza</td>
</tr>
<tr>
<td>Robots</td>
<td>Jazz</td>
</tr>
</table>
```
```html
<table>
<caption>Dinosaurs in the Jurassic period</caption>
...
</table>
```