forked from kokonior/HTML-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurveyForm.html
96 lines (91 loc) · 4.16 KB
/
SurveyForm.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
<!DOCTYPE html>
<!-- This is how HTML comments look like -->
<html lang="en">
<!-- the title will appear on the page-->
<head>
<title>Employee Interests Survey</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style type="text/css">
.background-image{
background-image: url("https://images.unsplash.com/photo-1506259091721-347e791bab0f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80");
background-size: cover;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<!-- as it is a survey form, we will need to submit the details, hence we use form -->
<!-- We can give absolute url, or relative url like /nextpage.jsp, and specify POST or GET method -->
<div class="background-image">
<div class="container p-3">
<form action="http://google.co.in" class="">
<!-- If we remove this, every thing will move to the left of the page-->
<div class="card">
<div class="card-header">
<!--Adds a heading to the form-->
<h1 class="text-center">Employee Interests Survey form</h1>
</div>
<div class="card-body p-3 col-10 m-auto" >
<div class="my-4 col-12 d-flex p-3 ">
<span class="ms-3 w-25">Enter your name:</span>
<!-- Input type text for small texts, specify size -->
<input type="text" name="UserName" class="col-9">
<!--Adds spaces - remove and see what happens -->
<!-- </br></br> -->
</div>
<div class=" my-4 col-12 d-flex p-3">
<span class="ms-3 w-25">Enter your department:</span>
<input type="text" name="Deptt" class="col-9">
</div>
<div class="my-4 col-12 d-flex p-3">
<span class="ms-3 w-25">Tell us a little about yourself:</span>
<!-- For writing lot of text like descriptions with text wrapping,
if you dont want text wrapping, you can add wrap = "off" (horizontal scrollbar -->
<textarea name="Comments" cols=30 rows=2 class="col-9"></textarea>
</div>
<div class="my-4 col-12 d-flex p-3 ">
<span class="ms-3 w-25">Do you exercise at home?</span>
<!-- Radio buttons help you choose one out of the many values -->
<div class="row-4 col-9">
<input type="radio" name="exe" class="mx-2" value=1>Yes
<input type="radio" name="exe" class="mx-2" value=2>No
</div>
</div>
<div class="my-4 col-12 d-flex p-3">
<span class="ms-3 w-25">How do you like to read about your favorite topics?</span>
<div class="row-4 col-9">
<!--Checkbox lets you select multiple options -->
<input type="checkbox" name="Books" class="mx-2">Books
<input type="checkbox" name="Web" class="mx-2">Online resources
<input type="checkbox" name="Phone" class="mx-2">Phone apps
<input type="checkbox" name="Magazines" class="mx-2">Magazines
</div>
</div>
<div class="my-4 col-12 d-flex">
<span class="ms-4 w-26">What genre of movies do you like?</span>
<!--Select box lets you choose one of the multiple dropdown options-->
<div class="col-9 ">
<select name="moviepref" class="ms-3"><option>
<option value=1 selected = "true">comedy
<option value=2 >romance
<option value=3 >thriller
<option value=4 >horror
<option value=5 >biopic
</select>
</div>
</div>
<div class="mx-4">
<!--submits the information entered in the form by the user -->
<input type=submit value="Submit form" class="btn btn-primary btn-lg">
</div>
</div>
</div>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</body>
</html>