๐ŸณCoding apple HTML/CSS All-in-one : ๊ธฐ์ดˆ๋ถ€ํ„ฐ Bootstrap, SASS, ๊ณ ๊ธ‰ animation ๊นŒ์ง€ ๊ฐ•์˜๋ฅผ ๋ณด๊ณ  ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค ๐Ÿณ

๐Ÿ’ซ <form> ํƒœ๊ทธ

<form>ย ํƒœ๊ทธ๋Š” ์›น ํŽ˜์ด์ง€์—์„œ์˜ย ์ž…๋ ฅ ์–‘์‹์„ ์˜๋ฏธ
ํ…์ŠคํŠธ ํ•„๋“œ์— ๊ธ€์ž๋ฅผ ์ž…๋ ฅํ•˜๊ฑฐ๋‚˜, ์ฒดํฌ๋ฐ•์Šค๋‚˜ ๋ผ๋””์˜ค ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๊ณ  ์ œ์ถœ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉดย ๋ฐฑ์—”๋“œ ์„œ๋ฒ„์— ์–‘์‹์ด ์ „๋‹ฌ๋˜์–ด ์ •๋ณด๋ฅผ ์ฒ˜๋ฆฌ

  • name: ํผ์˜ ์ด๋ฆ„
  • action: ํผ ๋ฐ์ดํ„ฐ๊ฐ€ ์ „์†ก๋˜๋Š” ๋ฐฑ์—”๋“œ url
  • method: ํผ ์ „์†ก ๋ฐฉ์‹ (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> ํƒœ๊ทธ ์•ˆ์— ์žˆ์–ด์•ผ ์ž‘๋™!
ย 

๐Ÿ’ซ ์˜ค๋Š˜์˜ ์ˆ™์ œ : ๋ ˆ์ด์•„์›ƒ ๋งŒ๋“ค๊ธฐ

See the Pen
Untitled
by dozzs (@dozzs)
on CodePen.

By Dozzing

๋‹ต๊ธ€ ๋‚จ๊ธฐ๊ธฐ

์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ํ•„๋“œ๋Š” *๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค