ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [HTML] ํผ ๊ด€๋ จ ํƒœ๊ทธ์™€ ์˜ˆ์ œ - 2
    ๐ŸŒ FrontEnd/HTML & CSS 2022. 5. 16. 20:13

     

    ํผ ๊ด€๋ จ ํƒœ๊ทธ๋“ค

    ํผ๊ณผ ๊ด€๋ จ๋œ ํƒœ๊ทธ๋“ค์„ ๊ณต๋ถ€ํ•ด๋ด…์‹œ๋‹ค.

     

     

    3. <input> ํƒœ๊ทธ์˜ ๋‹ค์–‘ํ•œ ์†์„ฑ

    (1) autofocus ์†์„ฑ - ์ž…๋ ฅ ์ปค์„œ ํ‘œ์‹œํ•˜๊ธฐ

    • ํŽ˜์ด์ง€๋ฅผ ๋ถˆ๋Ÿฌ์˜ค์ž๋งˆ์ž ์›ํ•˜๋Š” ์š”์†Œ์— ๋งˆ์šฐ์Šค ์ปค์„œ๊ฐ€ ํ‘œ์‹œ๋˜๋„๋ก ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    • ์ด์ „์—๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ด์šฉํ–ˆ์ง€๋งŒ, HTML5 ์—์„œ autofocus ์†์„ฑ์œผ๋กœ ์‰ฝ๊ฒŒ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

     

    (2) placeholder ์†์„ฑ - ํžŒํŠธ ํ‘œ์‹œํ•˜๊ธฐ

    • <input> ์š”์†Œ์˜ ํ•„๋“œ ์•ˆ์— ์ ๋‹นํ•œ ํžŒํŠธ ๋‚ด์šฉ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ๋‹ค๊ฐ€ ๊ทธ ํ•„๋“œ๋ฅผ ํด๋ฆญํ•˜๋ฉด ๋‚ด์šฉ์ด ์‚ฌ๋ผ์ง€๋„๋ก ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    • ํ…์ŠคํŠธ ํ•„๋“œ ์•ž์— ๋ ˆ์ด๋ธ”์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ ๋„ ์–ด๋–ค ๋‚ด์šฉ์„ ์ž…๋ ฅํ•ด์•ผ ํ•  ์ง€ ์•Œ๋ ค์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

     

    (3) readonly ์†์„ฑ - ์ฝ๊ธฐ ์ „์šฉ ํ•„๋“œ ๋งŒ๋“ค๊ธฐ

    • readonly ์†์„ฑ์€ ํ•ด๋‹น ํ•„๋“œ๋ฅผ ์ฝ๊ธฐ ์ „์šฉ์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.
    • ํ•„๋“œ ์•ˆ์— ๋‚ด์šฉ์ด ์žˆ์œผ๋ฉด์„œ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋‚ด์šฉ์„ ๋ณด์—ฌ์ฃผ๊ธฐ๋งŒ ํ•˜๊ณ  ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅ์€ ํ•  ์ˆ˜ ์—†๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
    • ์ฝ๊ธฐ ์ „์šฉ์œผ๋กœ ํ•˜๋ ค๋ฉด readonly="true" ๋˜๋Š” readonly ๋ฅผ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

     

    (4) required ์†์„ฑ - ํ•„์ˆ˜ ํ•„๋“œ ์ง€์ •ํ•˜๊ธฐ

    • [submit] ๋‹จ์ถ”๋ฅผ ํด๋ฆญํ•ด์„œ ์„œ๋ฒ„๋กœ ํผ์„ ์ „์†กํ•  ๋•Œ ํ•„์ˆ˜ ํ•„๋“œ์— ํ•„์š”ํ•œ ๋‚ด์šฉ์ด ๋ชจ๋‘ ์ฑ„์›Œ์กŒ๋Š”์ง€ ๊ฒ€์‚ฌํ•ฉ๋‹ˆ๋‹ค.
    • ์ด์ „์—๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ด์šฉํ–ˆ์ง€๋งŒ, HTML5 ์—์„œ required ์†์„ฑ์œผ๋กœ ์‰ฝ๊ฒŒ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

     

    (5) min, max, step ์†์„ฑ

    • min ์†์„ฑ๊ณผ max ์†์„ฑ์€ ๊ฐ๊ฐ ํ•ด๋‹น ํ•„๋“œ์˜ ์ตœ์†Ÿ๊ฐ’๊ณผ ์ตœ๋Œ“๊ฐ’์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.
    • step ์†์„ฑ์€ ํ—ˆ์šฉ๋œ ๋ฒ”์œ„ ๋‚ด์˜ ์ˆซ์ž์˜ ์ผ์ •ํ•œ ๊ฐ„๊ฒฉ์„ ๊ฐ€๋ฆฌํ‚ต๋‹ˆ๋‹ค.

     

    (1) ~ (5) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>์†์„ฑ ํŒŒํ—ค์น˜๊ธฐ</title>
        <style>
            form fieldset {
                margin-bottom: 25px;
            }
    
            form legend {
                font-size: 20px;
                font-weight: 600;
            }
    
            form label.reg {
                font-size: 15px;
                width: 120px;
                color: gray;
                float: left;
                text-align: right;
                margin-right: 10px;
            }
    
            form ul li {
                list-style: none;
                margin: 15px 0;
            }
        </style>
    </head>
    <body>
        <h2>์ˆ˜์—… ์‹ ์ฒญ</h2>
        <form>
            <fieldset id="subject">
                <legend>๊ณผ๋ชฉ</legend>
                <ul>
                    <li>
                        <label class="reg" for="subj">์›น ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ธฐ์ดˆ</label>
                        <input type="text" id="subj" value="์˜ค์ „ 9:00 - 11:00" readonly>
                    </li>
                </ul>
            </fieldset>
            <fieldset id="register">
                <legend>์‹ ์ฒญ์ž</legend>
                <ul>
                    <li>
                        <label class="reg" for="uname">์ด๋ฆ„</label>
                        <input type="text" id="uname" autofocus required>
                    </li>
                    <li>
                        <label class="reg" for="uid">์•„์ด๋””</label>
                        <input type="text" id="uid" placeholder="abc@murphy.com" maxlength="20" required>
                    </li>
                    <li>
                        <label class="reg" for="state">ํ˜„์žฌ ์ง์—…</label>
                        <select id="state">
                            <option value="adolescent">์ฒญ์†Œ๋…„</option>
                            <option value="university">๋Œ€ํ•™์ƒ(๋Œ€ํ•™์›์ƒ ํฌํ•จ)</option>
                            <option value="adult">์„ฑ์ธ ์ทจ์ค€์ƒ</option>
                            <option value="workers">์ง์žฅ์ธ</option>
                        </select>
                    </li>
                </ul>
            </fieldset>
            <fieldset>
                <legend>๊ต์žฌ ์ฃผ๋ฌธ</legend>
                <ul>
                    <li>
                        <label class="reg" for="book">๊ต์žฌ</label>
                        <input type="number" id="book" value="1" min="1" max="5">
                    </li>
                    <li>
                        <label class="reg" for="groupbook">๋‹จ์ฒด ์ฃผ๋ฌธ</label>
                        <input type="number" id="groupbook" value="10" min="1" max="100" step="10">
                    </li>
                </ul>
            </fieldset>
            <fieldset>
                <button type="submit" value="submit">์‹ ์ฒญํ•˜๊ธฐ</button>
                <button type="reset" value="reset">๋‹ค์‹œ์“ฐ๊ธฐ</button>
            </fieldset>
        </form>
    </body>
    </html>

     

    (6) size, minlength, maxlength ์†์„ฑ - ๊ธธ์ด, ์ตœ์†Œ ๊ธธ์ด, ์ตœ๋Œ€ ๊ธธ์ด ์†์„ฑ

     

    (6) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>ํšŒ์› ๊ฐ€์ž…</title>
        <style>
            ul li {
                list-style: none;
                margin-bottom: 10px;
            }
        </style>
    </head>
    <body>
        <h3>ํšŒ์› ๊ฐ€์ž…</h3>
        <form>
            <ul>
                <li><label>์•„์ด๋”” : <input type="text" id="user_id" size="10" minlength="4" maxlength="15"></label><small>4~15์ž๋ฆฌ ์ด๋‚ด์˜ ์˜๋ฌธ๊ณผ ์ˆซ์ž</small></li>
                <li><label>์ด๋ฉ”์ผ : <input type="email" id="user_email"></label></li>
                <li><label>๋น„๋ฐ€๋ฒˆํ˜ธ : <input type="password" id="user_pwd"></label></li>
                <li><label>๋น„๋ฐ€๋ฒˆํ˜ธ ํ™•์ธ : <input type="password" id="check_pwd"></label></li>
                <li><input type="submit" value="ํšŒ์›๊ฐ€์ž…"></li>
            </ul>
        </form>
    </body>
    </html>

     

     

    4. ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐ์ดํ„ฐ๋ฅผ ๋‚˜์—ดํ•ด์„œ ๋ณด์—ฌ์ฃผ๊ธฐ

    (1) <select>, <optgroup>, <option> ํƒœ๊ทธ - ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก ๋งŒ๋“ค๊ธฐ

    • ๊ณต๊ฐ„์„ ์ตœ๋Œ€ํ•œ ์ ๊ฒŒ ์‚ฌ์šฉํ•˜๋ฉด์„œ ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ์˜ต์…˜์„ ํ‘œ์‹œํ•˜๋Š” ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค.
    • <select> ํƒœ๊ทธ์˜ ์†์„ฑ : size ์†์„ฑ์ด๋‚˜ multiple ์†์„ฑ์„ ์ด์šฉํ•˜๋ฉด ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์˜ ํฌ๊ธฐ๋‚˜ ์„ ํƒํ•  ํ•ญ๋ชฉ์˜ ๊ฐœ์ˆ˜๋ฅผ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • <option> ํƒœ๊ทธ์˜ ์†์„ฑ : value ์†์„ฑ, selected ์†์„ฑ ์ž…๋‹ˆ๋‹ค.
    • <optgroupt> ํƒœ๊ทธ : ์˜ต์…˜๋ผ๋ฆฌ ๋ฌถ์–ด์ฃผ๋Š” ์†์„ฑ์ž…๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธํ˜• : <select ์†์„ฑ="์†์„ฑ ๊ฐ’">
    •                     <option value="๊ฐ’" [์†์„ฑ="์†์„ฑ ๊ฐ’"]> ๋‚ด์šฉ1 </option>
    •                     <option value="๊ฐ’" [์†์„ฑ="์†์„ฑ ๊ฐ’"]> ๋‚ด์šฉ2 </option>
    •                     <option value="๊ฐ’" [์†์„ฑ="์†์„ฑ ๊ฐ’"]> ๋‚ด์šฉ3 </option>
    •              </select>

     

    (1) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>๋ชฉ๋ก</title>
        <style>
            ul li {
                list-style: none;
                margin-bottom: 10px;
            }
        </style>
    </head>
    <body>
        <h3>๋ชฉ๋ก ์ค‘ ํ•ด๋‹น๋˜๋Š” ๊ฒƒ์„ ์„ ํƒํ•ด์ฃผ์„ธ์š”</h3>
        <form>
            <fieldset>
                <legend>์„ ํƒํ•˜๊ธฐ</legend>
                <ul>
                    <li>
                        <label for="state">ํ˜„์žฌ ์ƒํƒœ</label>
                        <select id="state">
                            <option value="very_happy">๋งค์šฐ ํ–‰๋ณต</option>
                            <option value="happy">ํ–‰๋ณต</option>
                            <option value="soso">๋ณดํ†ต</option>
                            <option value="sad">์Šฌํ””</option>
                            <option value="very_sad">๋งค์šฐ ์Šฌํ””</option>
                        </select>
                    </li>
                </ul>
            </fieldset>
        </form>
    </body>
    </html>

     

    (2) <datalist>, <option> ํƒœ๊ทธ

    • ํ…์ŠคํŠธ ํ•„๋“œ์— ์ž…๋ ฅํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ’๋“ค์„ ๋ชฉ๋ก ํ˜•ํƒœ๋กœ ์ œ์‹œํ•ฉ๋‹ˆ๋‹ค.
    • ํ…์ŠคํŠธ ํ•„๋“œ์— ์ง์ ‘ ๊ฐ’์„ ์ž…๋ ฅํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ์ œ์‹œํ•œ ๊ฐ’ ์ค‘์—์„œ ์„ ํƒํ•˜๋ฉด ์ž๋™์œผ๋กœ ์ž…๋ ฅ๋ฉ๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธํ˜• : <input type="text" list="๋ฐ์ดํ„ฐ ๋ชฉ๋ก id">
    •                       <datalist id="๋ฐ์ดํ„ฐ ๋ชฉ๋ก id">
    •                            <option> ... </option>
    •                            <option> ... </option>
    •                            ...
    •                            </datalist>

     

    (2) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>์„ค๋ฌธ ์กฐ์‚ฌ</title>
    </head>
    <body>
        <h3>์„ค๋ฌธ ์กฐ์‚ฌ</h3>
        <fieldset>
            <legend>๊ฐœ์ธ ์ •๋ณด</legend>
            <ul>
                <li>
                    <label for="class">ํ•™๊ณผ</label>
                    <select id="class">
                        <optgroup label="๊ณต๊ณผ๋Œ€ํ•™">
                            <option value="archi">๊ฑด์ถ•๊ณตํ•™๊ณผ</option>
                            <option value="mechanic">๊ธฐ๊ณ„๊ณตํ•™๊ณผ</option>
                            <option value="elec">์ „๊ธฐ์ „์ž๊ณตํ•™๊ณผ</option>
                            <option value="computer">์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ</option>
                            <option value="chemical">ํ™”ํ•™๊ณตํ•™๊ณผ</option>
                        </optgroup>
                        <optgroup label="์ธ๋ฌธ๋Œ€ํ•™">
                            <option value="history">์‚ฌํ•™๊ณผ</option>
                            <option value="philo">์ฒ ํ•™๊ณผ</option>
                            <option value="lang">์–ด๋ฌธํ•™๋ถ€</option>
                        </optgroup>
                    </select>
                </li>
            </ul>
        </fieldset>
        <fieldset>
            <legend>๊ด€์‹ฌ ์ง„๋กœ ์„ ํƒ</legend>
            <ul>
                <li>
                    <span>๊ด€์‹ฌ ์ง„๋กœ</span>
                    <label for="interest"></label>
                    <input type="text" id="interest" list="choices">
                    <datalist id="choices">
                        <option value="marketing" label="๋งˆ์ผ€ํŒ…"></option>
                        <option value="ec" label="๊ฒฝ์˜"></option>
                        <option value="prof" label="๊ต์ˆ˜"></option>
                        <option value="dev" label="๊ฐœ๋ฐœ์ž"></option>
                    </datalist>
                </li>
            </ul>
        </fieldset>
    </body>
    </html>

    ์›€์ง์ด๋Š” ์ด๋ฏธ์ง€์ž…๋‹ˆ๋‹ค

     

    (3) <textarea> ํƒœ๊ทธ ์—ฌ๋Ÿฌ ์ค„ ์ž…๋ ฅํ•˜๋Š” ํ…์ŠคํŠธ ์˜์—ญ ๋งŒ๋“ค๊ธฐ

    • ํ•œ ์ค„ ์ด์ƒ์˜ ๋ฌธ์žฅ์„ ์ž…๋ ฅํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํผ์ž…๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธํ˜• : <textarea [์†์„ฑ="์†์„ฑ ๊ฐ’"]> ๋‚ด์šฉ </textarea>

     

    (3) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>ํ…์ŠคํŠธ ์—์–ด๋ฆฌ์•„ ์—ฐ์Šต</title>
    </head>
    <body>
        <form>
            <fieldset>
                <legend>์•ˆ๋…•ํ•˜์„ธ์š”</legend>
                <textarea name="intro" cols="60" rows="10">
                    ์•ˆ๋…•ํ•˜์„ธ์š”
                    ํ…์ŠคํŠธ ์—์–ด๋ฆฌ์•„ ์—ฐ์Šต ์ค‘
    
    ์ด๋ž„๊นŒ์š”?
                </textarea>
            </fieldset>
        </form>
        
    </body>
    </html>

     

     

    5. ๋‹ค์–‘ํ•œ ํผ ์š”์†Œ๋“ค

    (1) <button> ํƒœ๊ทธ - ๋ฒ„ํŠผ ๋„ฃ๊ธฐ

    • ๋ฌธ์„œ์— ๋ฒ„ํŠผ์„ ๋„ฃ๊ณ  ํผ์„ ์ „์†กํ•˜๊ฑฐ๋‚˜ ๋ฆฌ์…‹ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธํ˜• : <button [type="submit | reset | button"]> ๋‚ด์šฉ </button>

     

    (1) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>๋ฒ„ํŠผ</title>
    </head>
    <body>
        <form>
            <button type="submit" class="subm">
                <img src="images/tick.png" alt=" "> ์ „์†กํ•˜๊ธฐ
            </button>
        </form>
    </body>
    </html>

     

     

    (2) <output> ํƒœ๊ทธ - ๊ฒฐ๊ณผ ์ถœ๋ ฅํ•˜๊ธฐ

    • ๊ณ„์‚ฐ ๊ฒฐ๊ณผ๋ฅผ ํ‘œ์‹œํ•˜๋Š” ํƒœ๊ทธ ์ž…๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธํ˜• : <output [์†์„ฑ="์†์„ฑ ๊ฐ’"]> ๋‚ด์šฉ </output>

     

    (2) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>๊ณ„์‚ฐ ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅ</title>
    </head>
    <body>
        <form oninput="result.value=parseInt(num1.value)+parseInt(num2.value)">
            <input type="number" name="num1" value="0">
            +
            <input type="number" name="num2" value="0">
            =
            <output name="result" for="num"></output>
        </form>
    </body>
    </html>

    ์›€์ง์ด๋Š” ์ด๋ฏธ์ง€์ž…๋‹ˆ๋‹ค

     

    (3) <progress> ํƒœ๊ทธ - ์ง„ํ–‰ ์ƒํƒœ ๋ณด์—ฌ์ฃผ๊ธฐ

    • ์ž‘์—…์˜ ์ง„ํ–‰ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ด์ฃผ๋Š” ํƒœ๊ทธ์ž…๋‹ˆ๋‹ค.
    • ๋‹จ์œ„๋Š” ์—†์Šต๋‹ˆ๋‹ค.

     

    (3) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>์ง„ํ–‰ ์ƒํƒœ</title>
    </head>
    <body>
        <script>
            function dwn() {
                var bar = document.getElementById("bar"), progress = document .getElementById("progress"), loaded = 0;
                var load = function() { 
                    loaded += 5;
                    bar.value = loaded;
    
                    if (loaded == 100) { 
                        clearInterval(dummyLoad);
                    } 
                };
                var dummyLoad = setInterval(function() { 
                    load()
                }, 500);
            }
        </script>
        <input type="button" value="๋‹ค์šด๋กœ๋“œ ์‹œ์ž‘" onclick="dwn()">
        <progress id="bar" value="0" max="100">
            <span id="progress"> </span>
        </progress>
    </body>
    </html>

    ์›€์ง์ด๋Š” ์ด๋ฏธ์ง€์ž…๋‹ˆ๋‹ค

     

    (4) <meter> ํƒœ๊ทธ - ๊ฐ’์ด ์ฐจ์ง€ํ•˜๋Š” ํฌ๊ธฐ ํ‘œ์‹œํ•˜๊ธฐ

    • ์ง€์ •๋œ ๋ฒ”์œ„ ์•ˆ์—์„œ ํ•ด๋‹น ๊ฐ’์ด ์–ด๋Š ์ •๋„ ์ฐจ์ง€ํ•˜๋Š”์ง€ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค.

     

    (4) ์˜ˆ์ œ

    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>๋ฏธํ„ฐ</title>
    </head>
    <body>
        <ul>
            <li>
                <label>์ ์œ ์œจ 0.9</label> <!-- ์ „์ฒด ํฌ๊ธฐ 1์„ ๊ธฐ์ค€์œผ๋กœ 0.9๋งŒํผ ์ฐจ์ง€ํ•ฉ๋‹ˆ๋‹ค -->
                <meter value="0.9"></meter>
            </li>
            <li>
                <label>์‚ฌ์šฉ๋Ÿ‰ 100%</label> <!-- ์ „์ฒด 100 ์ค‘์—์„œ 100์„ ์ฐจ์ง€ํ•ฉ๋‹ˆ๋‹ค -->
                <meter min="0" max="100" value="100"></meter>
            </li>
            <li>
                <label>ํŠธ๋ž˜ํ”ฝ ์ดˆ๊ณผ</label> <!-- ์ „์ฒด ํฌ๊ธฐ๋Š” 1024~10240๊นŒ์ง€์ธ๋ฐ ๋†’๋‹ค๊ณ  ์„ค์ •ํ•œ 8192๋ณด๋‹ค ํ˜„์žฌ ๊ฐ’์ด ๋” ํฝ๋‹ˆ๋‹ค -->
                <meter min="1024" max="10240" low="2048" high="8192" value="9216"></meter>
            </li>
            <li>
                <label>์ ์ ˆํ•œ ํŠธ๋ž˜ํ”ฝ</label> <!-- ์ „์ฒด 1 ์ค‘์—์„œ ํ˜„์žฌ 0.5๋ฅผ ์ฐจ์ง€ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, ์ ์ •๋„๋ฅผ 0.8๋กœ ์„ค์ •ํ–ˆ์Šต๋‹ˆ๋‹ค -->
                <meter value="0.5" optimum="0.8"></meter></li>
            </li>
    
    
        </ul>
    </body>
    </html>

     

     

    ๋งˆ๋ฌด๋ฆฌํ•˜๋ฉฐ

    ์ง€๊ธˆ๊นŒ์ง€ HTML ๊ณผ ๊ด€๋ จ๋œ ํƒœ๊ทธ๋ฅผ ๊ณต๋ถ€ํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค.

    ์ˆ˜์—…์—์„œ ๋ฐฐ์šด ๋‚ด์šฉ์„ ํ•˜๋‚˜ํ•˜๋‚˜ ๊ณต๋ถ€ํ•˜๋ฉฐ ์งง๊ฒŒ์งง๊ฒŒ ํฌ์ŠคํŒ… ํ•˜์ž ๋งˆ์Œ๋จน์—ˆ์—ˆ๋Š”๋ฐ, ์ด๋ ‡๊ฒŒ HTML ๋ถ€๋ถ„์„ ์™„๋ฃŒํ•˜๊ฒŒ ๋˜์–ด ๊ธฐ์˜๊ณ  ๋ฟŒ๋“ฏํ•ฉ๋‹ˆ๋‹ค.

     

    ๋‹ค์Œ์—” CSS ๊ฒ ์ฃ ? ๋‹ฌ๋ ค ๋ด…์‹œ๋‹ค!

    ๋Œ“๊ธ€