-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfancy-form.html
More file actions
41 lines (35 loc) · 1.33 KB
/
fancy-form.html
File metadata and controls
41 lines (35 loc) · 1.33 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Fancy Form Exercise</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
margin: 0;
padding: 0;
}
@media only screen and (max-width: 480px) {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div name="form-box">
<form action="fancy-form-action.html" method="get">
<label for="first_name" class="labels">First Name:</label>
<input type="text" name="firstName" class="fields" /> <br />
<label for="last_name" class="labels">Last Name:</label>
<input type="text" name="lastName" class="fields" /> <br />
<label for="email" class="labels">Email:</label>
<input type="email" name="email" class="fields" /> <br />
<label for="favorite_color" class="labels">Favorite Color:</label>
<input type="color" name="colorPicker" value="#50364A" class="fields" /> <br />
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>