_%F0%9F%91%A9_%F0%9F%8F%AB.png)

li:last-child {
padding-bottom: 0;
}
/* ๋ชฉ๋ก์ ๋ ๋ฒ์งธ <li> ์ ํ */
li:nth-child(2) {
color: lime;
}
/* ์์์ ๊ทธ๋ฃน์์ ๋ค ๋ฒ์งธ์ ์์นํ๋ ๋ชจ๋ ์์ ์ ํ */
:nth-child(4n) {
color: lime;
}
li:nth-child(odd) {
background: pink;
}
li:nth-child(even) {
background: red;
}
<table>, <thead>, <tbody>, <tr>, <th>, <td> ๋ฑ<tr>, <td><table> ํ๊ทธ๋ก ๊ฐ์ธ์ ธ ์๋ค.<table> ํ๊ทธ ๋ด์ ์ด๋ ๋ง๋ค๊ณ , ํ๋ ๋ง๋ ๋ค.<tr> ๋ก ์์ํ๋ค. tr์ table row์ ์ค์๋ง์ด๋ค.<tr> ํ๊ทธ ๋ด์ <td> ํ๊ทธ๋ฅผ ์ฌ์ฉํ๋ค. 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>
Row 1, column 1 Row 1, column 2 Row 2, column 1 Row 2, column 2
<th><td> ๋ฅผ ์ฌ์ฉํ์ฌ css ๋ก ๊ธ์จ ๋์์ธ์ ๋ฐ๊ฟ ์ ์๋ค. <table class="border-table">
<tr>
<th></th>
<th>ํ1</th>
<th>ํ2</th>
</tr>
<tr>
<th>์ด1</th>
<td>๋ด์ฉ</td>
<td>๋ด์ฉ</td>
</tr>
<tr>
<th>์ด2</th>
<td>๋ด์ฉ</td>
<td>๋ด์ฉ</td>
</tr>
</table>
ํ1 ํ2 ์ด1 ๋ด์ฉ ๋ด์ฉ ์ด2 ๋ด์ฉ ๋ด์ฉ
<td> ๋ <th> ํ๊ทธ์ colspan, rowspan ์ด๋ผ๋ attribute๋ฅผ ์ถ๊ฐํด์ ๊ตฌํํ ์ ์๋ค.<th> ํ๊ทธ ๊ธฐ๋ณธ ์์ฑ ์์ ๊ธฐ<th> ํ๊ทธ์๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ์ฉ๋์ด ์๋ css ์์ฑ์ด ์๋ค.th {
font-weight: normal;
text-align: left;
}
<th> ์๋ ๊ธฐ๋ณธ์ ์ผ๋ก text-align: center; ๊ณผ font-weight: bold; ๊ฐ ์ค์ ๋์ด ์๊ธฐ ๋๋ฌธ์ <td> ํ๊ทธ์ ๊ฐ์์ง๊ฒ css๋ฅผ ์ค์ ํ๋ฉด ๋๋ค.<textarea> : <input> ๋ณด๋ค ๋ ๊ธด ๋ด์ฉ์ ์
๋ ฅํ๊ณ ์ถ์ ๋ ์ฌ์ฉ input::placeholder {
color: #bbb;
}
input[type="text"] {
}
button:hover {
cursor: pointer;
}
<textarea> ์ฒ๋ผ <input> ์๋ ๋ฏธ๋ฆฌ ๊ฐ์ ์ธํ
ํด๋๊ณ ์ถ์ ์๊ฐ ์๋ค. ๊ทธ๋๋ value ๋ผ๋ attribute๋ฅผ ์ฌ์ฉํ๋ค.<์ฐธ๊ณ >