-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathforms.html
102 lines (78 loc) · 2.81 KB
/
forms.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title -->
<title>HTML in Action</title>
</head>
<body>
<!-- Main Header -->
<header>
<h1>HTML in Action</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/basics.html">Basics</a></li>
<li><a href="/lists.html">Lists</a></li>
<li><a href="/forms.html">Forms</a></li>
<li><a href="/tables.html">Tables</a></li>
</ul>
</nav>
</header>
<!-- Form -->
<section>
<h1>Sign Up Form</h1>
<form action="/forms.html" method="get">
<fieldset>
<legend>Credentials</legend>
<label for="email">Email</label>
<input type="email" name="email" placeholder="Email" required>
<label for="password">Password</label>
<input type="password" name="password" placeholder="Password" required>
<label for="password-confirm">Password Confirm</label>
<input type="password" name="password-confirm" placeholder="Retype your passowrd" required>
</fieldset>
<fieldset>
<legend>Name:</legend>
<label for="first-name">First Name</label>
<input type="text" name="first-name" placeholder="First name">
<label for="first-name">First Name</label>
<input type="text" name="first-name" placeholder="Last name">
</fieldset>
<fieldset>
<legend>Gender</legend>
<label for="gender">Male</label>
<input type="radio" name="gender" value="m">
<label for="gender">Female</label>
<input type="radio" name="gender" value="f">
</fieldset>
<fieldset>
<legend>Profile</legend>
<label for="location">Location</label>
<select name="location">
<option value="earth">Earth</option>
<option value="jupiter">Jupiter</option>
<option value="abyss">The Abyss</option>
</select>
<br>
<label for="about">About</label>
<br>
<textarea name="about" placeholder="Tell us about yourself..."></textarea>
<br>
<label for="hobbies">Hobbies</label>
<br>
<input type="checkbox" name="hobbies[]" value="skiing"> Skiing
<input type="checkbox" name="hobbies[]" value="coding"> Coding
<input type="checkbox" name="hobbies[]" value="cooking"> Cooking
<input type="checkbox" name="hobbies[]" value="sports"> Sports
</fieldset>
<input type="submit">
</form>
</section>
<!-- Main Footer -->
<footer>
A demo by <a href="http://vikingcodeschool.com">Viking Code School</a>
</footer>
</body>
</html>