-
Notifications
You must be signed in to change notification settings - Fork 415
/
Basic_form.html
67 lines (60 loc) · 2.16 KB
/
Basic_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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Page</title>
<link rel="stylesheet" href="form.css" />
</head>
<body id="bk">
<section id="contact-form">
<div id="container">
<h2>Contact form</h2>
<form method="POST" action="action.php">
<label for="address">Address</label>
<br />
<input
name="address"
placeholder="Address"
id="address"
type="text"
/>
<p id="address_error">Address Cannot be empty</p>
<br /><br />
City<br />
<input name="city" id="city" placeholder="City" type="text" />
<p id="city_error">City Cannot be empty</p>
<br /><br />
Zip<br />
<input name="zip" id="zip" placeholder="Zip" type="text" />
<p id="zip_error">Zip Cannot be empty</p>
<br />
<h2>Subjects :</h2>
<br />
<input type="checkbox" name="maths" id="maths" />
<label for="maths">MATHS</label><br />
<input type="checkbox" name="english" id="english" />
<label for="english">ENGLISH</label><br />
<input type="checkbox" name="science" id="science" />
<label for="science">SCIENCE</label><br />
<p class="check" id="check">Must select at least one option</p>
<h2>Homework done:</h2>
<input name="Homework" type="radio" />YES<br />
<input name="Homework" type="radio" />NO<br />
<p id="radio_check">My select yes or no</p>
<h2>Class:</h2>
<select name="class" id="class">
<option value="12th">12th</option>
<option value="12th">11th</option>
<option value="12th">10th</option>
</select>
<br />
<!-- <p id="select_check">Select one option</p> -->
<button type="submit" id="submit">Submit</button>
</form>
</div>
</section>
<script src="./Basic_form.js"></script>
</body>
</html>