-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2-10.폼_요소.html
64 lines (54 loc) · 1.88 KB
/
2-10.폼_요소.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>form</title>
</head>
<body>
<form action="/test.html" method="post">
<h1>Form 관련 요소</h1>
<fieldset>
<legend>기본정보</legend>
<label for="userId">아이디</label>
<input type="text" placeholder="영문 입력" id="userId">
<br>
<label for="userPwd">비밀번호</label>
<input type="password" placeholder="비밀번호 입력" id="userPwd">
<br>
성별
<label for="female">여자</label><input type="radio" name="gender" id="female" checked>
<label for="male">남자</label><input type="radio" name="gender" id="male">
<br>
</fieldset>
<fieldset>
<legend>부가정보</legend>
취미
<label for="reading">독서</label><input type="checkbox" name="hobby" id="reading">
<label for="exercise">운동</label><input type="checkbox" name="hobby" id="exercise">
<label for="music">음악감상</label><input type="checkbox" name="hobby" id="music">
<br>
<label for="profile">프로필사진 업로드</label>
<input type="file" id="profile">
<br>
<label for="area">지역</label>
<select id="area">
<option>서울</option>
<option selected>경기</option>
<option>강원</option>
</select>
<br>
<label for="about">자기소개</label>
<textarea rows="3" col="7" placeholder="간략한 소개글 입력" id="about"></textarea>
</fieldset>
<input type="submit" value="전송">
<input type="reset" value="취소">
<input type="button" value="등록">
<input type="image" src="image/dog.jpg" alt="로그인" width="40" height="30">
<br>
<button type="submit">전송</button>
<button type="reset">취소</button>
<button type="button">등록</button>
<button type="submit"><img src="image/dog.jpg" alt="로그인" width="40" height="30"></button>
</form>
</body>
</html>