๐Ÿฉต[HTML 4์ผ์ฐจ]

ttt00ยท2025๋…„ 9์›” 8์ผ

HTML

๋ชฉ๋ก ๋ณด๊ธฐ
4/4

1๏ธโƒฃ <form> ํƒœ๊ทธ

<label for = 'grade'>ํ•™๋…„</label><br>
        <select name = "grade">
            <option value = "์„ ํƒํ•˜์„ธ์š”" required>์„ ํƒํ•˜์„ธ์š”.</option>
            <option value = "1"> 1ํ•™๋…„</option>
            <option value = "2"> 2ํ•™๋…„</option>
            <option value = "3"> 3ํ•™๋…„</option>
        </select><br>
<label for = "tel">์ „ํ™”๋ฒˆํ˜ธ</label>
<input type = "tel" name = "phone" pattern = "^010-[0-9]{4}-[0-9]{4}$" placeholder="010-1234-1234">


2๏ธโƒฃ <ํƒœ๊ทธ>

- โœ… <p> : ํ•˜๋‚˜์˜ ๋ฌธ๋‹จ(๋ธ”๋ก ์š”์†Œ, ์ž๋™์œผ๋กœ ์ค„๋ฐ”๊ฟˆ)
- โœ… <br> : ์ค„๋ฐ”๊ฟˆ
- โœ… <!--์ฃผ์„ ๋‚ด์šฉ--> : ์ฃผ์„ ์ฒ˜๋ฆฌ
- โœ… <html></html> : HTML๋ฌธ์„œ์˜ ์‹œ์ž‘๊ณผ ๋
- โœ… <a>, <span> : ์ธ๋ผ์ธ ์š”์†Œ (๊ณต๊ฐ„์ด ๋ถ€์กฑํ•˜๋ฉด ๋ฐ‘์œผ๋กœ ์ค„๋ฐ”๊ฟˆ)
- โœ… <hN> : ๊ธ€์”จ ํฌ๊ธฐ
- โœ… <div> : container๋กœ ์‚ฌ์šฉํ•˜๋Š” ํƒœ๊ทธ (์˜๋ฏธX, CSS ์ ์šฉ์‹œ ๋ ˆ์ด์•„์›ƒ ๋‚˜๋ˆ”์œผ๋กœ
๋””์ž์ธ ๋‹ค๋ฅด๊ฒŒ ์ ์šฉ)
- โœ… <ol> : ์ˆœ์„œ ์žˆ๋Š” ๋ชฉ๋ก (1.--- 2.--- 3.---)
- โœ… <ul> : ์ˆœ์„œ ์—†๋Š” ๋ชฉ๋ก (-... -... -...)
- โœ… <li> : ๋ชฉ๋ก ํ•ญ๋ชฉ (<ol>, <ul> ๊ฐ ํ•ญ๋ชฉ์„ ์ •์˜ํ•  ๋•Œ ์‚ฌ์šฉ)
- โœ… <a href = "๋งํฌ">home</a> : ํ•˜์ดํผ๋งํฌ ๊ตฌ๋ฌธ 
- โœ… <img src = "์ด๋ฏธ์ง€ ๊ฒฝ๋กœ" alt = "์ด๋ฏธ์ง€ ์„ค๋ช… ํ…์ŠคํŠธ"> : ์ด๋ฏธ์ง€ ์‚ฝ์ž…
- โœ… <input type = "password"> : ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ์ฐฝ (ยทยทยทยท)
- โœ… <input type = "number"> : ์ˆซ์ž ํ•˜๋‚˜์”ฉ ์ฆ๊ฐ€ ๋˜๋Š” ๊ฐ์†Œ
- โœ… <input type = "checkbox"> : ์ค‘๋ณต ์„ ํƒ ๊ฐ€๋Šฅํ•œ ์ฒดํฌ๋ฐ•์Šค
- โœ… <input type = "radio"> : ๊ฐ™์€ lable๋กœ ๋ฌถ์—ˆ์„ ๋•Œ ์ค‘๋ณต ์„ ํƒ ๋ถˆ๊ฐ€ํ•œ ์ฒดํฌ๋ฐ•์Šค
- โœ… <input type = "file"> : ํŒŒ์ผ ๊ฐ€์ ธ์˜ค๊ธฐ
- โœ… <input type = "submit"> : ์ œ์ถœ ๋ฒ„ํŠผ
- โœ… <input type = "reset"> : ์ดˆ๊ธฐํ™” ๋ฒ„ํŠผ
- โœ… <label for = "usergender">์„ฑ๋ณ„</label> : lable๋กœ ํƒœ๊ทธ ์š”์†Œ(input)๋ฅผ ๋ฌถ์Œ์œผ๋กœ์จ ์„ค๋ช…(์—ฐ๊ฒฐํ•˜๋ ค๋Š” ์†์„ฑ ๊ฐ™๊ฒŒํ•˜๊ธฐ)
- โญ๏ธ required : ํ•„์ˆ˜ ์ž…๋ ฅ
- โญ๏ธ <pattern = "^010-[0-9]{4}-[0-9]{4}$"> : ์ „ํ™”๋ฒˆํ˜ธ ํ˜•์‹์„ ๊ฒ€์‚ฌํ•˜๋Š” pattern ์†์„ฑ ๋ฌธ๋ฒ• (^ : ๋ฌธ์ž์—ด ์‹œ์ž‘, [0-9]{4} : 0๋ถ€ํ„ฐ 9์•ˆ์—์„œ ์ˆซ์ž 4์ž $ : ๋ฌธ์ž์—ด ๋)
- โญ๏ธ placeholder="010-1234-1234"> : ์ž…๋ ฅ ์˜ˆ์‹œ

0๊ฐœ์˜ ๋Œ“๊ธ€