็ก์
์ฝ๋ ํด์_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

๐๐ปโ 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

#html #form #required #autofocus #readonly #placeholder #autocomplete
#ํ์๊ฐ์ ํผ #ํ์์ ๋ ฅ #์๋ํฌ์ปค์ค #์ฝ๊ธฐ์ ์ฉ #์์ ๋ถ๊ฐ #์๋ด๋ฌธ๊ตฌ #๋ฉ์ผํ์ #์๋๊ฒ์ฌ
#css #border-radius #attribureselectors #selectors #Pseudo-class #:not #:nth-of-type #:hover
#์ ํ์ #์ ๋ ํฐ #์๋ํด๋์ค #์์ฌํด๋์ค #๊ฐ์ํด๋์ค #ํธ๋ฒ #๋ง์ฐ์ค #๋ง์ฐ์คํฌ์ธํธ