-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest.html
72 lines (71 loc) · 2.06 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<title>My form</title>
<style>
body{
text-align: center;
background-image: url('contact.jpg');
background-repeat: no-repeat;
background-size: cover;
}
#myForm{
background-color: rgba(0, 0, 0, 0.6);
color: seashell;
}
#myForm>input{
background-color: rgba(255, 255, 255, 0.6);
padding: 10px;
margin: 15px;
color: seashell;
border-radius: 25px;
border-style: none;
outline: none;
}
#myForm label select{
padding: 10px;
margin: 5px;
color: white;
}
select{
margin: 20px 0px;
}
#file{
margin: 10px;
}
</style>
</head>
<body>
<h2>My Form</h2>
<form action="/action_page.php" id="myForm">
<label for="fname">First name:</label><br />
<input type="text" id="fname" value="John" /><br />
<label for="email">email:</label><br />
<input type="email" id="email" placeholder="email" /><br />
<p>My hobbies<p>
<input type="checkbox" placeholder="Cricket" value="Cricket" name='Cricket' />
<label for="Cricket">Cricket</label>
<br />
<input type="checkbox" placeholder="Basketball" value="BasketBall" name="BasketBall"/>
<label for="Basketball">Basketball</label>
<br />
<p>Favourite Language<p>
<input type="radio" placeholder="Java" value="Java" name='Java' />
<label for="Java">Java</label>
<br />
<input type="radio" placeholder="Python" value="Python" name="Python"/>
<label for="Python">Python</label>
<br>
<input type="file" id='file'/>
<br>
<textarea placeholder="write your message" cols="60" rows="10"></textarea></br>
<label for='gender'> Choose Your Gender</label>
<select id="gender" name="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
<br>
<input type="submit" value="Submit" />
</form>
</body>
</html>