모쿠 2017. 3. 29. 16:36

<여러가지 Form Type>



<14_form.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Form</title>
</head>
<body>
<h1>여러가지 form 요소들</h1>
<!-- input은 컨텐츠를 가질 수 없는 태그
    input은 value라는 속성을 사용하여 컨텐츠를 입력 -->
<form action="result.html" method="get">
    <textarea rows="5" cols="100" name = "contract">
</textarea><br/>
    <input type="radio" name="gender" value="male"/>남자
    <input type="radio" name="gender" value="female"/>여자
    <br/>
    <input type="checkbox" name="hobby" value="movie"/>영화
    <input type="checkbox" name="hobby" value="music"/>음악
    <input type="checkbox" name="hobby" value="webtoon"/>웹툰
    <br/>        
    <select name="coffee">
        <option>아메리카노</option>
        <option>라떼</option>
        <option>카푸치노</option>
    </select>
    <br/>
    
    <input type="file" name="profile"/>
    <br/>
    <input type="submit" value="제출" />
</form>
</body>
</html>
cs