<table>, <tr>(table row), <td>(table data), <th>(table heading)
ν
μ΄λΈμ νμ <table> νκ·Έλ‘ κ°μΈμ Έ μλ€.
ν νμ μμν λ <tr>(table row)λ‘ μμ
κ°κ°μ μ
μ <tr> νκ·Έ μμ <td>(table data) νκ·Έ μ¬μ©
<table>
<tr>
<td>Row 1, column 1</td>
<td>Row 1, column 2</td>
</tr>
<tr>
<td>Row 2, column 1</td>
<td>Row 2, column 2</td>
</tr>
</table>
<table>
<tr>
<th></th>
<th>Dog</th>
<th>Cat</th>
</tr>
<tr>
<th>μ’
</th>
<td>Canine</td>
<td>Feline</td>
</tr>
<tr>
<th>μ§λμ리</th>
<td>Bark</td>
<td>Meow</td>
</tr>
<tr>
<th>Immature</th>
<td>Puppy</td>
<td>Kitten</td>
</tr>
</table>
<td> λμ <th>(table heading) μ¬μ©
css μ μ©ν λλ, <table>νκ·Έμ class λΆμ¬νκ³ λμ, style.css κ°μ
.border-table th, .border-table td {
border: 1px solid black;
}
<rowspan> : ν λ³ν©
<colspan> : μ΄ λ³ν©
<table class="border-table">
<tr>
<th></th>
<th>λ΄μ©</th>
<th>μ₯μ</th>
</tr>
<tr>
<th>1μ</th>
<td>HTMLμ΄λ</td>
<td>101νΈ</td>
</tr>
<tr>
<th>2μ</th>
<td rowspan="2">HTMLμ€μ΅</td>
<td>102νΈ</td>
</tr>
<tr>
<th>3μ</th>
<td>103νΈ</td>
</tr>
<tr>
<th>4μ</th>
<td>CSSλ</td>
<td>104νΈ</td>
</tr>
<tr>
<th>5μ</th>
<td>CSSμ€μ΅</td>
<td>104νΈ</td>
</tr>
<tr>
<th>6μ</th>
<td colspan="2">μμ
μμ΅λλ€.</td>
</tr>
</table>
ν μ΄λΈ μ 체λ κ°κ°μ td thμλ€ ν΄λμ€ μ€μ css μ μ© κ°λ₯