๐ซ <form> ํ๊ทธ
<form>ย ํ๊ทธ๋ ์น ํ์ด์ง์์์ย ์
๋ ฅ ์์์ ์๋ฏธ
ํ
์คํธ ํ๋์ ๊ธ์๋ฅผ ์
๋ ฅํ๊ฑฐ๋, ์ฒดํฌ๋ฐ์ค๋ ๋ผ๋์ค ๋ฒํผ์ ํด๋ฆญํ๊ณ ์ ์ถ ๋ฒํผ์ ๋๋ฅด๋ฉดย ๋ฐฑ์๋ ์๋ฒ์ ์์์ด ์ ๋ฌ๋์ด ์ ๋ณด๋ฅผ ์ฒ๋ฆฌ
name: ํผ์ ์ด๋ฆaction: ํผ ๋ฐ์ดํฐ๊ฐ ์ ์ก๋๋ ๋ฐฑ์๋ urlmethod: ํผ ์ ์ก ๋ฐฉ์ (GET / POST)
ย
๐ซ <input> ํ๊ทธ
<input type="text">
<input type="email">
<input type="password">
<input type="radio">
<input type="file">
<input type="checkbox">
<input type="submit">
<select>
<option>์ต์
1</option>
</select>
<textarea></textarea>
<input>ํ๊ทธ์ ๋ฃ๋ ์์ฑ๋ค
<input placeholder="์ด์ฉ๊ตฌ" value="์ด์ฉ๊ตฌ" name="age">
placeholder : ๋ฐฐ๊ฒฝ ๊ธ์
value : ๋ฏธ๋ฆฌ ์
๋ ฅ๋ ๊ฐ
name : ์๋ฒ ๊ธฐ๋ฅ ๊ฐ๋ฐ์ ํ์ํ ์ธํ์ ์ด๋ฆ์ ์ค์ ๊ฐ๋ฅ
- HTML ์์ฑ์ผ๋ก CSS ์ ๋ ํฐ ์ฌ์ฉ
input[type=email] {
color : grey
}
- ์ ์ก ๋ฒํผ
<button type="submit">์ ์ก</button>
<input type="submit">
<form> ํ๊ทธ ์์ ์์ด์ผ ์๋!
ย

๋ต๊ธ ๋จ๊ธฐ๊ธฐ