-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform1.html
72 lines (59 loc) · 2.7 KB
/
form1.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Test</title>
<style>
body {margin-top: 100px;
margin-left: 100px;
margin-right: 500px;}
fieldset {border: 2px solid rgb(179, 212, 255);
background-color: lightgray;}
input {border: 1px solid rgb(25, 155, 155)}
</style>
</head>
<body>
<form>
<fieldset>
<legend>프로필</legend>
<label>이름
<input type="text" placeholder="예) 김덕우" size="7"></label>
<label for="pa">비밀번호</label>
<input type="password" id="pa" autofocus maxlength="10"> <!--autofocus는 자동으로 입력 시작-->
</fieldset>
</form>
</body><br><br>
<body>
<form>
<fieldset>
<legend>프로필</legend>
<label>이름<input type="text" placeholder="김덕우" size="15"></label><br><br>
<label for="pw">비밀번호</label>
<input type="password" id="pw" maxlength="5"><br><br>
<label>검색<input type="search"></label><br><br>
<label>이메일<input type="email"></label><br><br>
<label>전화번호<input type="tel"></label><br><br> <!--모바일로 보면, 입력 시 키패드로 변경됨-->
<label>URL<input type="url"></label><br><br>
학년: <br>
<label>1학년<input type="radio" name="grd" value="g_1"></label><br>
<label>2학년<input type="radio" name="grd" value="g_2"></label><br>
<label>3학년<input type="radio" name="grd" value="g_3"></label><br>
<label>4학년<input type="radio" name="grd" value="g_4"></label><br><br>
수강과목: <br> <!--체크박스는 하나만 선택 안 됨. name 구분 필요 X-->
<label>웹콘텐츠 제작<input type="checkbox" value="web" checked></label><br>
<label>디지털 오디오 제작 기초<input type="checkbox" value="aud"></label><br>
<label>인간 컴퓨터 상호작용<input type="checkbox" value="uiux"></label><br>
<label>프로그래밍 개론<input type="checkbox" value="pro"></label><br>
<label>영상분석과 제작<input type="checkbox" value="pro"></label><br><br>
<label>점수<input type="number" min="1" max="10" step="2" value="3"></label><br>
<label>점수2<input type="range" min="1" max="10" step="2" value="3"></label><br><br>
<input type="date">
<input type="month">
<input type="week"><br>
<input type="time">
<input type="datetime-local">
<input type="datetime">
</fieldset>
</form>
</body>
</html>