<body>
<h2>์
๋ ฅ์์</h2>
<p>
์ฌ์ฉ์์๊ฒ ์
๋ ฅ๋ฐ๋ ๊ณต๊ฐ. ์์ด๋/๋น๋ฒ/์ฒดํฌ๋ฐ์ค/์ฌ๋ฌ์ค๊ณ์๋ฌผ/๋ผ๋์ค๋ฒํผ๋ฑ
</p>
<ul>
<li>
<h4>formํ๊ทธ</h4>
<p>
์
๋ ฅ์์ ์ค์ ์ ๊ธฐ๋ฅ์ formํ๊ทธ ์์์ ์๋.
<br>๋จ์ํํ๊ณผ ๊ด๋ จ๋ ๊ธฐ๋ฅ๋ง ์ฌ์ฉํ ๋ ์์ด๋ ๋จ.
<br>formํ๊ทธ ์ฌ์ฉ์ฌ๋ถ๋ ๋ฐฑ์๋๊ฐ๋ฐ์์ ํ์.
</p>
</li>
<li>
<h4>inputํ๊ทธ</h4>
<p>
์
๋ ฅ์์์ ๊ธฐ๋ณธ. typeํน์ฑ๋ฐ๋ผ ๋ค์ํ ์์์ง์.
</p>
</li>
<li>
<h4>textareaํ๊ทธ</h4>
<p>
๋ฌธ์ฅ์ฒ๋ผ ์ฌ๋ฌ์ค ํ
์คํธ์
๋ ฅ๋ ์ฌ์ฉ.
</p>
</li>
<li>
<h4>selectํ๊ทธ</h4>
<p>
์ฌ๋ฌ ์ ํํญ๋ชฉ์ค ํ๊ฐ์ง ์ ํ์ํด ์ฌ์ฉ.
</p>
</li>
</ul>
<hr>
<h3>inputํ๊ทธ</h3>
<p>
๊ธฐ๋ณธ์ ์
๋ ฅ์์์ผ๋ก typeํน์ฑ์ผ๋ก ์ฌ๋ฌ์์ ์ฌ์ฉ๊ฐ๋ฅ.
<br>typeํน์ฑ ๊ธฐ๋ณธ๊ฐ์ textํ์ค๋ฌธ์ฅ ์
๋ ฅ์์ ์ ๊ณต.
<br>๋๋น ๋์ด ์ ์ฉ๊ฐ๋ฅ inline-block์์/ inline level์ ์ํจ
</p>
<input>
<input type="text">
<ul>
<li><input type="text" maxlength="10" placeholder="์์ด๋"></li>
<li><input type="password" maxlength="10" placeholder="๋น๋ฐ๋ฒํธ"></li>
<li><input type="search" placeholder="๊ฒ์"></li>
<li>
<input type="email" placeholder="์ด๋ฉ์ผ">
๋ชจ๋ฐ์ผ์ @์๋ ํคํจ๋๋ก ์ ํ
</li>
<li>
<input type="url" placeholder="๋๋ฉ์ธ">
๋ชจ๋ฐ์ผ์ ํ์ฅ๋๋ฉ์ธ ์๋ ํคํจ๋๋ก ์ ํ
</li>
<li>
<input type="tel" placeholder="์ ํ๋ฒํธ">
๋ชจ๋ฐ์ผ์ ์ซ์ํคํจ๋๋ก ์ ํ
</li>
</ul>
<ul>
<li>
<input type="button" value="๋ฒํผ์์">
</li>
<li>
<input type="submit" value="ํ์ธ">
</li>
<li>
<input type="reset" value="์ทจ์">
</li>
</ul>
<fieldset>
<legend>radio๋ฒํผ</legend>
<input type="radio" name="mon" checked>:1/4๋ถ๊ธฐ
<input type="radio" name="mon">:2/4๋ถ๊ธฐ
<input type="radio" name="mon">:3/4๋ถ๊ธฐ
<input type="radio" name="mon">:4/4๋ถ๊ธฐ
<label>
<input type="radio" name="gander">:๋จ์ฑ
</label>
<label>
<input type="radio" name="gander" checked>:์ฌ์ฑ
</label>
<input type="radio" name="month" id="min" checked><label for="min">:์๋ ฅ</label>
<input type="radio" name="month" id="plu"><label for="plu">:์๋ ฅ</label>
</fieldset>
<fieldset>
<legend>checkbox ๋ฒํผ</legend>
<input type="checkbox" name="bobby" id="c1"> <label for="">๋
์</label>
<input type="checkbox" name="bobby" id="c2" checked> <label for="">์์
๊ฐ์</label>
<input type="checkbox" name="bobby" id="c3"> <label for="">์ํ๊ฐ์</label>
<input type="checkbox" name="bobby" id="c4"> <label for="">์์ ๊ฑฐํ๊ธฐ</label>
</fieldset>
<fieldset class="fst">
<legend>checkbox๋ชจ์๋ฐ๊พธ๊ธฐ</legend>
<input type="checkbox" name="test" id="t1">
<label for="t1">
<i class="fas fa-check-square"></i>
<i class="far fa-square"></i>
์ฒดํฌ๋ฐ์ค
</label>
</fieldset>
</body>
<style>
.fst>label{}
#t1{
display: none;
}
#t1+label{}
#t1:checked+label{
color: #f00;
}
#t1+label>.fa-check-square{
display: none;
}
#t1+:checked+label>.fa-check-square{
display: inline;
}
#t1+:checked+label>.fa-square{
display: none;
}
.fst>legend~label{}
</style>