Notice
Recent Posts
Recent Comments
Link
ยซ   2026/05   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

็„ก์ œ

์ฝ”๋“œ ํ•ด์„_0325_ํšŒ์›๊ฐ€์ž…ํผ/ํ•„์ˆ˜์ž…๋ ฅ/์ž๋™ํฌ์ปค์Šค/์ฝ๊ธฐ์ „์šฉ/์•ˆ๋‚ด๋ฌธ๊ตฌ/๋ฉ”์ผํ˜•์‹/์ž๋™๊ฒ€์‚ฌ/์…€๋ ‰ํ„ฐ/์ˆ˜๋„ํด๋ž˜์Šค/์˜์‚ฌํด๋ž˜์Šค/๊ฐ€์ƒํด๋ž˜์Šค ๋ณธ๋ฌธ

<401>

์ฝ”๋“œ ํ•ด์„_0325_ํšŒ์›๊ฐ€์ž…ํผ/ํ•„์ˆ˜์ž…๋ ฅ/์ž๋™ํฌ์ปค์Šค/์ฝ๊ธฐ์ „์šฉ/์•ˆ๋‚ด๋ฌธ๊ตฌ/๋ฉ”์ผํ˜•์‹/์ž๋™๊ฒ€์‚ฌ/์…€๋ ‰ํ„ฐ/์ˆ˜๋„ํด๋ž˜์Šค/์˜์‚ฌํด๋ž˜์Šค/๊ฐ€์ƒํด๋ž˜์Šค

yo-u-loo 2026. 3. 25. 20:48

 

๐Ÿ‘‡๐Ÿป โ€ŠHTML

<!DOCTYPE HTML>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <title>ํšŒ์› ๊ฐ€์ž…</title>
  <link rel="stylesheet" href="css/register2.css">
</head>
<body>
<!-- ํšŒ์›๊ฐ€์ž… ํผ ์‹œ์ž‘ -->
  <form id="signup">
  <!-- ๋กœ๊ทธ์ธ ์ •๋ณด ์˜์—ญ -->
    <fieldset>
      <legend>๋กœ๊ทธ์ธ ์ •๋ณด</legend> <!-- ๊ทธ๋ฃน ์ œ๋ชฉ -->
      <ul>
      <!-- ์•„์ด๋”” ์ž…๋ ฅ -->
        <li>
          <label for="userid">์•„์ด๋””</label>
          <input id="userid" name="userid" type="text" required autofocus>
          <!-- ํ•„์ˆ˜์ž…๋ ฅ, ์ž๋™ํฌ์ปค์Šค -->
        </li>
        <!-- ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ -->
        <li>
          <label for="pwd1">๋น„๋ฐ€๋ฒˆํ˜ธ</label>
          <input id="pwd1" name="pwd1" type="password"  required>
          <!-- ์ž…๋ ฅ ํ…์ŠคํŠธ ์ˆจ๊น€ -->
        </li>
         <!-- ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ2 -->
        <li>
          <label for="pwd2">๋น„๋ฐ€๋ฒˆํ˜ธ ํ™•์ธ</label>
          <input id="pwd2" name="pwd2" type="password" required>
           <!-- ๋น„๋ฐ€๋ฒˆํ˜ธ ํ™•์ธ์šฉ  -->
        </li>
         <!-- ํšŒ์› ๋“ฑ๊ธ‰ (์ฝ๊ธฐ ์ „์šฉ) -->
        <li>
          <label for="level">ํšŒ์› ๋“ฑ๊ธ‰</label>
          <input id="level" name="level" type="text" readonly value="์ค€ํšŒ์›">
           <!-- ์ฝ๊ธฐ ์ „์šฉ, ์ˆ˜์ • ๋ถˆ๊ฐ€ -->
        </li>
      </ul>
    </fieldset>
     <!-- ๊ฐœ์ธ ์ •๋ณด ์˜์—ญ -->
    <fieldset>
      <legend>๊ฐœ์ธ ์ •๋ณด</legend>  <!-- ๊ทธ๋ฃน ์ œ๋ชฉ -->
      <ul>
       <!-- ์ด๋ฆ„ ์ž…๋ ฅ -->
        <li>
          <label for="fullname">์ด๋ฆ„</label>
          <input id="fullname" name="fullname" type="text" placeholder="5์ž๋ฏธ๋งŒ ๊ณต๋ฐฑ์—†์ด" required>
           <!-- ์•ˆ๋‚ด ๋ฌธ๊ตฌ, ํ•„์ˆ˜ ์ž…๋ ฅ -->
        </li>
         <!-- ๋ฉ”์ผ ์ฃผ์†Œ ์ž…๋ ฅ -->
        <li>
          <label for="email">๋ฉ”์ผ ์ฃผ์†Œ</label>
          <input id="email" name="email" type="email" placeholder="abcd@domain.com" required autocomplete="off">
           <!-- ์ด๋ฉ”์ผ ํ˜•์‹ ์ž๋™ ๊ฒ€์‚ฌ, ์•ˆ๋‚ด ๋ฌธ๊ตฌ, ํ•„์ˆ˜ ์ž…๋ ฅ, ์ž๋™ ์™„์„ฑ X -->
        </li>
        <!-- ์—ฐ๋ฝ์ฒ˜ ์ž…๋ ฅ -->
        <li>
          <label for="tel">์—ฐ๋ฝ์ฒ˜</label>
          <input id="tel" name="tel" type="tel" autocomplete="off">
          <!-- ์ „ํ™”๋ฒˆํ˜ธ ์ž…๋ ฅ์ฐฝ -->
        </li>  
      </ul>
    </fieldset>
    <!-- ์ œ์ถœ ๋ฒ„ํŠผ ์˜์—ญ -->
    <fieldset>
      <button type="submit"> ์ œ์ถœ </button>
      <!-- ํด๋ฆญ ์‹œ ํผ ๋ฐ์ดํ„ฐ ์ „์†ก -->
    </fieldset>
  </form>
</body>
</html>

๐Ÿ‘†๐Ÿปโ€Š 13/results/register2.html

๐Ÿ‘‡๐Ÿปโ€Š CSS

/* ๋ชจ๋“  ์š”์†Œ ๊ธฐ๋ณธ ์—ฌ๋ฐฑ ์ œ๊ฑฐ */
* {
	margin: 0; /* ๋ฐ”๊นฅ ์—ฌ๋ฐฑ ์ œ๊ฑฐ */
	padding: 0; /* ์•ˆ์ชฝ ์—ฌ๋ฐฑ ์ œ๊ฑฐ */
}

/* ์ „์ฒด ํŽ˜์ด์ง€ ์Šคํƒ€์ผ */
body {
	background: #ccc; /* ๋ฐฐ๊ฒฝ์ƒ‰ */
	padding: 20px; /* ํ™”๋ฉด ์•ˆ์ชฝ ์—ฌ๋ฐฑ */
}

/* ํšŒ์›๊ฐ€์ž… ํผ ์ „์ฒด ๋ฐ•์Šค */
#signup {
	background:#fff; /* ๋ฐฐ๊ฒฝ์ƒ‰ */
	border:1px solid #222; /* ํ…Œ๋‘๋ฆฌ */
	border-radius: 5px; /* ๋ชจ์„œ๋ฆฌ ๋‘ฅ๊ธ€๊ฒŒ */
	padding: 20px; /* ๋‚ด๋ถ€ ์—ฌ๋ฐฑ */
	width: 400px; /* ๋„ˆ๋น„ */
	margin:30px auto; /* ์œ„์•„๋ž˜ ์—ฌ๋ฐฑ, ์ค‘์•™ ์ •๋ ฌ */
}

/* ๊ทธ๋ฃน ๋ฐ•์Šค ์Šคํƒ€์ผ */
#signup fieldset {
	border: 1px solid #ccc; /* ํ…Œ๋‘๋ฆฌ */
	margin-bottom: 30px; /* ํ•˜๋‹จ ์—ฌ๋ฐฑ */
}

/* ์ œ๋ชฉ ์Šคํƒ€์ผ */
#signup legend {
	font-size: 16px; /* ๊ธ€์ž ํฌ๊ธฐ */
	font-weight: bold; /* ๊ธ€์ž ๊ตต๊ธฐ */
	padding-left:5px; /* ์™ผ์ชฝ ์—ฌ๋ฐฑ */
	padding-bottom: 10px; /* ํ•˜๋‹จ ์—ฌ๋ฐฑ */	
}

/* ๋ฆฌ์ŠคํŠธ ํ•ญ๋ชฉ ์Šคํƒ€์ผ */
#signup ul li {
	line-height: 30px; /* ์ค„ ๋†’์ด (์„ธ๋กœ ๊ฐ„๊ฒฉ) */
	list-style: none; /* ๋งˆ์ปค ๋ชจ์–‘ ์ œ๊ฑฐ */
	padding: 5px 10px; /* ๋‚ด๋ถ€ ์—ฌ๋ฐฑ */
	margin-bottom: 2px; /* ํ•˜๋‹จ ์—ฌ๋ฐฑ */
}

/* ๋ฒ„ํŠผ ์Šคํƒ€์ผ */
#signup button {	
	border: 1px solid #222; /* ํ…Œ๋‘๋ฆฌ */
	border-radius: 20px; /* ๋ชจ์„œ๋ฆฌ ๋‘ฅ๊ธ€๊ฒŒ */
	display: block; /* ๋ธ”๋ก ์š”์†Œ๋กœ ๋ณ€๊ฒฝ */
	font-size: 16px; /* ๊ธ€์ž ํฌ๊ธฐ */
	letter-spacing: 1px; /* ๊ธ€์ž ๊ฐ„๊ฒฉ */
	margin: auto; /* ์—ฌ๋ฐฑ ์ค‘์•™ ์ •๋ ฌ */
	padding: 7px 25px; /* ๋‚ด๋ถ€ ์—ฌ๋ฐฑ */
}

/* ๋กœ๊ทธ์ธ&๊ฐœ์ธ์ •๋ณด ์Šคํƒ€์ผ */
#signup label {
	float: left;  /* ์™ผ์ชฝ ๋ฐฐ์น˜ */
	font-size: 13px;  /* ๊ธ€์ž ํฌ๊ธฐ */
	width: 110px;  /* ๋„ˆ๋น„ */
}

/* signup์˜ input์˜ type์ค‘ text, password, tel, email๋งŒ ์ ์šฉ */
#signup input[type=text], 
#signup input[type=password], 
#signup input[type=tel], 
#signup input[type=email] {  
	border: 1px solid #ccc; /* ํ…Œ๋‘๋ฆฌ */
	border-radius: 3px; /* ๋ชจ์„œ๋ฆฌ ๋‘ฅ๊ธ€๊ฒŒ */
	font-size: 13px; /* ๊ธ€์ž ํฌ๊ธฐ */
	padding: 5px; /* ๋‚ด๋ถ€ ์—ฌ๋ฐฑ */
	width: 200px; /* ๋„ˆ๋น„ */
}					

/* signup์˜ input์˜ required๋งŒ ์ ์šฉ */
#signup input[required] {
	border:1px red solid; /* ํ…Œ๋‘๋ฆฌ */
}

/* signup์˜ input์˜ readonly๋งŒ ์ ์šฉ */
#signup input[readonly] {
	border:none; /* ํ…Œ๋‘๋ฆฌ ์ œ๊ฑฐ */
}

๐Ÿ‘†๐Ÿปโ€Š 13/results/css/register2.css

http://127.0.0.1:5500/doit-hcj-new-main/13/results/register2.html

 

๐Ÿ‘‡๐Ÿปโ€Š CSS

* {
	margin: 0;
	padding: 0;
}

body {
	background: #ccc;
	padding: 20px;	
}

#signup {
	background:#fff;
	border:1px solid #222;
	border-radius: 5px;
	padding: 20px;
	width: 400px;	
	margin:30px auto;
}
		
#signup fieldset {
	border: 1px solid #ccc;
	margin-bottom: 30px;
}
		
#signup legend {
	font-size: 16px;
	font-weight: bold;
	padding-left:5px;
	padding-bottom: 10px;	
}

#signup ul li {
	line-height: 30px;
	list-style: none;
	padding: 5px 10px;
	margin-bottom: 2px;
}
			
#signup button {	
	border: 1px solid #222;
	border-radius: 20px;
	display: block;
	font-size: 16px;
	letter-spacing: 1px;
	margin: auto;
	padding: 7px 25px;
}

#signup label {
	float: left;
	font-size: 13px;
	width: 110px;
}

/* signup์˜ input์ค‘์—์„œ type์ด radio๋ฅผ ์ œ์™ธํ•œ ๋ชจ๋“  input ์Šคํƒ€์ผ์— ์ ์šฉ */
#signup input:not([type=radio]) {
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	padding: 5px;
	width: 200px;
}					

#signup input[required] {
	border:1px red solid;
}

#signup input[readonly] {
	border:none;
}

/* signup์˜ fieldset์ค‘์—์„œ ๋งˆ์ง€๋ง‰ type์— ์ ์šฉ */
#signup fieldset:last-of-type {
  border:none; /* ํ…Œ๋‘๋ฆฌ ์ œ๊ฑฐ */
  margin-bottom:0; /* ํ•˜๋‹จ ์—ฌ๋ฐฑ ์ œ๊ฑฐ */
}

/* signup์˜ button์— ๋งˆ์šฐ์Šค ์˜ฌ๋ ธ์„๋•Œ ์ ์šฉ */
#signup button:hover {
  background-color:#222; /* ๋ฐฐ๊ฒฝ ์ƒ‰์ƒ */
  color:#fff; /* ๊ธ€์ž ์ƒ‰์ƒ */
}

๐Ÿ‘†๐Ÿปโ€Š 13/results/css/register3.css

http://127.0.0.1:5500/doit-hcj-new-main/13/results/register3.html

 

#html #form #required #autofocus #readonly #placeholder #autocomplete

#ํšŒ์›๊ฐ€์ž…ํผ #ํ•„์ˆ˜์ž…๋ ฅ #์ž๋™ํฌ์ปค์Šค #์ฝ๊ธฐ์ „์šฉ #์ˆ˜์ •๋ถˆ๊ฐ€ #์•ˆ๋‚ด๋ฌธ๊ตฌ #๋ฉ”์ผํ˜•์‹ #์ž๋™๊ฒ€์‚ฌ

#css #border-radius #attribureselectors #selectors #Pseudo-class #:not #:nth-of-type #:hover

#์„ ํƒ์ž #์…€๋ ‰ํ„ฐ #์ˆ˜๋„ํด๋ž˜์Šค #์˜์‚ฌํด๋ž˜์Šค #๊ฐ€์ƒํด๋ž˜์Šค #ํ˜ธ๋ฒ„ #๋งˆ์šฐ์Šค #๋งˆ์šฐ์Šคํฌ์ธํŠธ