-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path09-forms.html
More file actions
84 lines (83 loc) · 2.92 KB
/
09-forms.html
File metadata and controls
84 lines (83 loc) · 2.92 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML | Forms</title>
</head>
<body>
<h1>Contact Us</h1>
<form action="mailto:info@aymanpharmacy.com" method="post" enctype="text/plain">
<label>Your Name:</label><br>
<input type="text" name="name"><br>
<label>Your Email:</label><br>
<input type="email" name="email"><br>
<label>Your Message</label><br>
<textarea name="message"></textarea><br>
<label>Password:</label><br>
<input type="Password" name="Password"><br>
<input type="submit" name="">
</form>
<h1>Another Form:</h1>
<form action="process.php">
<div>
<!--
Matching the for attribute with id will let label be functional
i.e: When you click label content (Name), it will activate input
-->
<label for="name">Name</label><br>
<input type="text" id="name" name="name" value="John Doe">
</div>
<!-- Email -->
<div>
<label for="email">Email</label><br>
<input type="email" id="email" name="email" placeholder="Enter an email">
</div>
<!-- Textarea -->
<div>
<label for="message">Message</label><br>
<textarea name="message" id="message" cols="50" rows="5"></textarea>
</div>
<!-- Select -->
<div>
<label for="gender">Gender</label>
<select name="gender" id="gender">
<option value="male" selected>Male</option>
<option value="female" selected>Female</option>
<option value="other">Other</option>
</select>
</div>
<!-- Number -->
<div>
<label for="age">Age</label><br>
<input type="number" name="age" id="age">
</div>
<!-- Date -->
<div>
<label for="birthdate">Birthdate</label><br>
<input type="date" name="birthdate" id="birthdate">
</div>
<!-- Radio -->
<div>
<label for="membership">Membership</label>
<input type="radio" name="membership" value="simple" id="membership"> Simple
<input type="radio" name="membership" value="standard" id="membership" checked> Standard
<input type="radio" name="membership" value="super" id="membership"> Super
</div>
<!-- Checkbox -->
<div>
<label for="membership">I Like..</label>
<input type="checkbox" name="likes" value="bike" id="likes"> Bike
<input type="checkbox" name="likes" value="car" id="likes"> Car
<input type="checkbox" name="likes" value="boat" id="likes"> Boat
</div>
<!-- Input submit -->
<input type="submit" value="Submit">
<!-- Button submit -->
<!-- <button type="submit">Submit</button> -->
<button type="reset">Reset</button>
<!-- <input type="reset" value="Reset"> -->
</form>
</body>
</html>