๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ์ธ๊ณต๋ถ€/HTML5 + CSS3

[HTML+CSS][ํผ ๊ด€๋ จ ํƒœ๊ทธ๋“ค] 06 - ์—ฐ์Šต๋ฌธ์ œ

by ๐Ÿ‡๋ฐ•๋ด‰๋ด‰๐Ÿ‡ 2020. 6. 21.

01

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>์˜ˆ์•ฝ์ •๋ณด</title>
    <style>
		ul {
			list-style:none;
		}
		li {
			line-height:50px;
		}
		label {
			width:60px;
			float:left;
		}
	</style>
</head>
<body>
    <form>
        <h1>์˜ˆ์•ฝ ์ •๋ณด</h1>
        <ul>
            <li>
                <label for="u-name">์ด ๋ฆ„ </label>
                <input type="text" id="u-name">
            </li>
            <li>
                <label for="u-tel">ํœด๋Œ€ํฐ </label>
                <input type="tel" id="u-tel">
            </li>
            <li>
                <label for="u-mail">์ด๋ฉ”์ผ </label>
                <input type="email" id="u-mail">
            </li>
            <li>
                <input type="button" value="์˜ˆ์•ฝํ•˜๊ธฐ">
            </li>
        </ul>
    </form>
</body>
</html>

 

 


 

 

02

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ํ”„๋ŸฐํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž ์ง€์›์„œ</title>
    <style>
        #container { 
            width:520px;
            border:1px solid black;
            padding:20px 40px;
            margin:0 auto;
        }
  fieldset { margin-bottom:15px; }
  legend { font-weight:bold; }
        ul {list-style-type: none;}
        li { line-height:30px;}
</style>
</head>
<body>
    <div id="container">
        <h1>ํ”„๋ŸฐํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž ์ง€์›์„œ </h1>
        <p>HTML, CSS, Javascript์— ๋Œ€ํ•œ ๊ธฐ์ˆ ์  ์ดํ•ด์™€ ๊ฒฝํ—˜์ด ์žˆ๋Š” ๋ถ„์„ ์ฐพ์Šต๋‹ˆ๋‹ค.</p>
        <hr>
        <form>
            <h4>๊ฐœ์ธ์ •๋ณด</h4>
            <ul>
                <li>
                    <label for="name">์ด๋ฆ„ </label>
                    <input type="text" id="name" placeholder="๊ณต๋ฐฑ์—†์ด ์ž…๋ ฅํ•˜์„ธ์š”">
                </li>
                <li>
                    <label for="tel">์—ฐ๋ฝ์ฒ˜ </label>
                    <input type="tel" id="tel">
                </li>
            </ul>
            <h4>์ง€์› ๋ถ„์•ผ</h4>
            <ul>
                <li>
                    <label><input type="radio" name="field" value="webpb"> ์›น ํผ๋ธ”๋ฆฌ์‹ฑ</label>
                </li>
                <li>
                    <label><input type="radio" name="field" value="webdp"> ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ</label>
                </li>
                <li>
                    <label><input type="radio" name="field" value="web"> ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ฐœ์„ </label>
                </li>
            </ul>
            <h4>์ง€์› ๋™๊ธฐ</h4>
            <label><textarea cols="60" rows="5" placeholder="๋ณธ์‚ฌ ์ง€์› ๋™๊ธฐ๋ฅผ ๊ฐ„๋žตํžˆ ์จ ์ฃผ์„ธ์š”."></textarea></label>
            <br>
            <button type="submit">์ ‘์ˆ˜ํ•˜๊ธฐ</button>
            <button type="reset">๋‹ค์‹œ ์“ฐ๊ธฐ</button>
        </form>
    </div>
</body>
</html>

 

 


 

 

< ์ฐธ๊ณ  >

Do it! HTML5+CSS3 ์›น ํ‘œ์ค€์˜ ์ •์„

 

 

โ€ป ํ•ด๋‹น ๊ธ€์€ ์Šต๋“ ๋ชฉ์ ์œผ๋กœ ์ž‘์„ฑ๋œ ๊ธ€์ž…๋‹ˆ๋‹ค โ€ป

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€