-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.html
More file actions
61 lines (61 loc) · 2.19 KB
/
Copy pathforms.html
File metadata and controls
61 lines (61 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>
FORM
</title>
<style>
body{
background-image: url("https://upload.wikimedia.org/wikipedia/en/2/27/Bliss_%28Windows_XP%29.png");
background-repeat: no-repeat;
background-size: cover;
width: 1000px;
height: 1000px;
font-size: 20px;
margin-left: auto;
margin-right: auto;
font: bold;
}
</style>
</head>
<body>
<h1 >FORMS Using form tag</h1>
<form method="get">
<fieldset>
<legend>Personal Details</legend>
<p>
<label>First Name : <input name="firstname" placeholder="enter first name" required/></label>
</p>
<p>
<label>Last Name : <input name="lastname" placeholder="enter last name" required/></label>
</p>
<p>
Gender :
<label><input type="radio" name="gender" value="male" />Male</label>
<label><input type="radio" name="gender" value="female" />female</label>
</p>
<p>
<label>Email : <input name="email" placeholder="enter email"/></label>
</p>
<hr/>
<p>
<label>Date of Birth : <input type="date" name="birthDate"/></label>
</p>
<p>
<label>Age : </label><input type="number" name="Age" required placeholder="enter age" min="18" max="65" style="width: 200px;"></label>
</p>
<hr/>
<p>
<label>Address :
<br/>
<textarea name="address" cols="30" rows="3" placeholder="enter Address"></textarea>
</label>
</p>
<p>
<input type="submit" value="Submit">
<button type="submit">Submit</button>
</p>
</fieldset>
</form>
</body>
</html>