๋ฐ์ํ
Table
- <table> : ํ๊ทธ ์์ ๋ง๋ญ๋๋ค.
- <caption> : ํ ์ด๋ธ์ ์ ๋ชฉ
- <colgroup> : ์ปฌ๋ผ ๋น์จ์ ์ ํฉ๋๋ค.
- <col> : ์ปฌ๋ผ๊ฐฏ์์ ๋ง๊ฒ <col>์ ๋ง๋ค์ด ์กฐ์ ํฉ๋๋ค.
- <col> : ์ปฌ๋ผ๊ฐฏ์์ ๋ง๊ฒ <col>์ ๋ง๋ค์ด ์กฐ์ ํฉ๋๋ค.
- <thead> : ์ปฌ๋ผ์ด ๋ค์ด๊ฐ๋ ๋ถ๋ถ
- <th> : ํ๋์ ์ปฌ๋ผ์
๋๋ค.
- <th> : ํ๋์ ์ปฌ๋ผ์
๋๋ค.
- <tbody> : ํ ๋ถ๋ถ์
๋๋ค.
- <tr> : ํ
์ด๋ธ ์นธ๋ค์ ํ ์ค์ ๋ชจ์๋์ต๋๋ค.
- <td> : ์ค์ ํ
์ด๋ธ ์นธ์
๋๋ค.
- <td> : ์ค์ ํ
์ด๋ธ ์นธ์
๋๋ค.
- <tr> : ํ
์ด๋ธ ์นธ๋ค์ ํ ์ค์ ๋ชจ์๋์ต๋๋ค.
- <tfoot> : table foot. ๋ฐ๋ฅ๋ ์
๋๋ค.
์ ์ฒด์ฝ๋
๋๋ณด๊ธฐ
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>ํ
์ด๋ธ ๋ง๋ค๊ธฐ</title>
<script src="../common/js/static.js"></script>
</head>
<body>
<table border="1">
<caption><caption>ํ
์ด๋ธ ์ ๋ชฉ</caption>
<colgroup>
<col width="200px" />
<col width="300px" />
<col width="500px" />
</colgroup>
<thead>
<th><thead>์ปฌ๋ผ 1</th>
<th>์ปฌ๋ผ 2</th>
<th>์ปฌ๋ผ 3</th>
</thead>
<tbody>
<tr>
<td><td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</tbody>
<tfoot>
<tr>
<td><tfoot>footer1</td>
<td>footer2</td>
<td>footer3</td>
</tr>
</tfoot>
</table>
<div id="commonFooter"></div>
</body>
</html>
์ ๋ณํฉํ๊ธฐ
rowspan="์ซ์" → ํ๋ณํฉ
colspan="์ซ์" → ์ด๋ณํฉ
โป ํ ์ด๋ธ ๋์ div๋ฅผ ์ฌ์ฉํด์ ํ๋ฅผ ๋ง๋๋ ์ถ์ธ๋ผ๊ณ ํฉ๋๋ค.
๋ฐ์ํ
'โจ UI > ๐ HTML' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[HTML]์ ํ์ selector. id, class, name (0) | 2024.12.22 |
---|---|
[HTML]์ด๋ฏธ์ง img (0) | 2024.12.22 |
[HTML]๋ชฉ๋กํ๊ทธ <ul> <ol> <dl> (0) | 2024.12.21 |
[HTML]Entities (  ๊ณต๋ฐฑ, " ํฐ ๋ฐ์ดํ" ๋ฑ) (0) | 2024.12.21 |
[HTML]๊ฒฝ๋ก ์ข ๋ฅ์ ์ฌ์ฉ๋ฒ (0) | 2024.12.21 |