-
Notifications
You must be signed in to change notification settings - Fork 0
/
dating-form.html
123 lines (123 loc) · 3.72 KB
/
dating-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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dating Form</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<h1>Enter Your Details For Our Dating Website</h1>
<form
action="https://us-central1-nucamp-production.cloudformations.net/post/formdata"
method="post"
enctype="multipart/formdata"
>
<fieldset>
<legend>Your Face</legend>
<div>
<label for="avatar">Upload Your Image:</label>
<input type="file" name="avatar" id="avatar" required />
</div>
<div>
<p>Image Preview:</p>
<img id="preview" alt="My Face" width="500" />
</div>
</fieldset>
<fieldset>
<legend>Your Details</legend>
<div>
<label for="name">Name:</label>
<input
type="text"
name="name"
id="name"
placeholder="Your full name"
/>
</div>
<div>
<label>Gender:</label>
<input type="radio" name="gender" id="woman" required />
<label for="woman">Woman</label>
<input type="radio" id="man" name="gender" value="man" />
<label for="man">Man</label>
<input type="radio" name="gender" id="nonbinary" />
<label for="nonbinary">Non-binary</label>
</div>
<div>
<label for="age">Age:</label>
<input type="number" name="age" id="age" />
</div>
<div>
<label for="dob">Date of Birth:</label>
<input type="date" name="dob" id="dob" />
</div>
<div>
<label for="color">Favorite Color:</label>
<input type="color" id="color" name="color" />
</div>
<div>
<label for="country">Country:</label>
<select name="country" id="country">
<option value="country">Choose a country</option>
<option value="brazil">Brazil</option>
<option value="france">France</option>
<option value="japan">Japan</option>
<option value="libya">Libya</option>
<option value="usa">U.S.A.</option>
</select>
</div>
<div>
<label for="salary">Salary:</label>
<span class="range-caption">Poor</span>
<input
type="range"
id="salary"
name="salary"
min="0"
max="100"
value="50"
/>
<span class="range-caption">Rich</span>
</div>
</fieldset>
<fieldset>
<legend>Your Contact Information</legend>
<div>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
</div>
<div>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" />
</div>
<div>
<label for="address">Address:</label>
<textarea name="address" id="address" cols="40"></textarea>
</div>
<div>
<label>Contact method(s):</label>
<input
type="checkbox"
name="contact"
id="emailCheckbox"
value="email"
/>
<label for="emailCheckbox">Email</label>
<input
type="checkbox"
name="contact"
id="phoneCheckbox"
value="phone"
/>
<label for="phoneCheckbox">Phone</label>
</div>
</fieldset>
<div>
<input type="submit" />
</div>
</form>
<!-- Javascript Files-->
<script src="https://url.nucamp.co/datingjs"></script>
</body>
</html>