Professional Documents
Culture Documents
A STUDY ON
Survey Form
SUBMITTED ON Nov BY THE GROUP OF 3 STUDENTS
This is to certify that Mr. Sai Konda Roll No.02 of Fourth Semester of Diploma
in Information Technology at institute Shivajirao S Jondhle Polytechnic
Asangaon (Code:-0935) has completed the micro project satisfactorily in
subject Client Side Scripting (22519) for the academic year 2023 to 2024 as
prescribed in the curriculum I Scheme.
Date : Seat No :
This is to certify that Mr. Gourav Bhatia Roll No.04 of Fourth Semester of
Diploma in Information Technology at institute Shivajirao S Jondhle
Polytechnic Asangaon (Code:-0935) has completed the micro project
satisfactorily in subject Client Side Scripting (22519) for the academic year
2023 to 2024 as prescribed in the curriculum I Scheme.
Date : Seat No :
This is to certify that Mr. Nayan Vishe Roll No.07 of Fourth Semester of
Diploma in Information Technology at institute Shivajirao S Jondhle
Polytechnic Asangaon (Code:-0935) has completed the micro project
satisfactorily in subject Client Side Scripting (22519) for the academic year
2023 to 2024 as prescribed in the curriculum I Scheme.
Date : Seat No :
Index
1 Introduction 1
2 Forms 2
3 Form Tags 2 To 7
4 Advantages 7
6 Conclusion 16
Introduction
V. Prerequisite:
Basic concepts of HTML and CSS like tags, ID , color , margin,
padding, font, text field, checkbox, radio button, etc.
Forms
Form Tags
<input>
<textarea>
<button>
<select>
<option>
<optgroup>
<fieldset>
<label>
<output>
The <form> tag is used to create an HTML form for user input.
The <form> element can contain one or more of the following form
elements:
I. <input>
1. <input type="button">
2. <input type="checkbox">
3. <input type="color">
4. <input type="date">
5. <input type="datetime-local">
6. <input type="email">
7. <input type="file">
8. <input type="hidden">
9. <input type="image">
10. <input type="month">
11. <input type="number">
12. <input type="password">
13. <input type="radio">
14. <input type="range">
15. <input type="reset">
16. <input type="search">
17. <input type="submit">
18. <input type="text">
19. <input type="time">
20. <input type="url">
21. <input type="week">
II. <textarea>
TextArea Attributes :
1. AutoFocus
2. Columns
3. Rows
4. Wrap
5. Name
6. Placeholder
7. Form
8. Readonaly
9. Required
10. Maxlength
III. <button>
Inside a <button> element you can put text (and tags like <i>,
<b>, <strong>, <br>, <img>, etc.). That is not possible with a
button created with the <input> element!
Button Attribute :
1. AutoFocus
2. Value
3. Name
4. Type
5. Disabled
6. FormMethod
7. Form
IV. <select>
V. <Option>
If you have a long list of options, groups of related options are easier to
handle for a user.
VII. <fieldset>
4. Name
VIII. <label>
1. <input type="checkbox">
2. <input type="color">
3. <input type="date">
4. <input type="datetime-local">
5. <input type="email">
6. <input type="file">
7. <input type="month">
8. <input type="number">
9. <input type="password">
10. <input type="radio">
11. <input type="range">
12. <input type="search">
13. <input type="tel">
14. <input type="text">
15. <input type="time">
16. <input type="url">
17. <input type="week">
18. <meter>
19. <progress>
20. <select>
21. <textarea>
Benefit :
Screen reader users (will read out loud the label, when the user is
focused on the element)
The <output> tag is used to represent the result of a calculation (like one
performed by a script).
1. For
2. Name
3. Form
Advantages
You use the form tag when you want to not use
JavaScript and submit a collection of form fields to a
script on your server.
In your example the form element would not be needed.
Although you don't have the usual perk of having a
form(easy submit to server), you can still use it to make
your markup semantic.
<!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>
Build a Survey Form using HTML and CSS
</title>
<style>
/* Styling the Body element i.e. Color,
Font, Alignment */
body {
background-color: #05c46b;
font-family: Verdana;
text-align: center;
}
/* Styling the Form (Color, Padding, Shadow) */
form {
background-color: #fff;
max-width: 500px;
margin: 50px auto;
padding: 30px 20px;
box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
}
/* Styling form-control Class */
.form-control {
text-align: left;
margin-bottom: 25px;
}
/* Styling form-control Label */
.form-control label {
display: block;
margin-bottom: 10px;
}
/* Styling form-control input,
select, textarea */
.form-control input,
.form-control select,
.form-control textarea {
border: 1px solid #777;
border-radius: 2px;
font-family: inherit;
padding: 10px;
display: block;
width: 95%;
}
/* Styling form-control Radio
button and Checkbox */
.form-control input[type="radio"],
.form-control input[type="checkbox"] {
display: inline-block;
width: auto;
}
/* Styling Button */
button {
background-color: #05c46b;
border: 1px solid #777;
border-radius: 2px;
font-family: inherit;
font-size: 21px;
display: block;
width: 100%;
margin-top: 50px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<h1> Survey Form</h1>
<!-- Create Form -->
<form id="form">
<!-- Details -->
<div class="form-control">
<label for="name" id="label-name">
Name
</label>
<!-- Input Type Text -->
<input type="text"
id="name"
placeholder="Enter your name" />
</div>
<div class="form-control">
<label for="email" id="label-email">
Email</label>
<!-- Input Type Email-->
<input type="email"
id="email"
placeholder="Enter your email" />
</div>
<div class="form-control">
<label for="age" id="label-age">Age</label>
<!-- Input Type Text -->
<input type="text"
id="age" placeholder="Enter your age" />
</div>
<div class="form-control">
<label for="role" id="label-role">
Which option best describes you?
</label>
<!-- Dropdown options -->
<select name="role" id="role">
<option value="student">Student</option>
<option value="intern">Intern</option>
<option value="professional">
Professional
</option>
<option value="other">Other</option>
</select>
</div>
<div class="form-control">
<label>
Would you Worked In Any Company?
</label>
<!-- Input Type Radio Button -->
<label for="recommed-1">
<input type="radio"
id="recommed-1"
name="recommed">Yes</input>
</label>
<label for="recommed-2">
<input type="radio"
id="recommed-2"
name="recommed">No</input>
</label>
<label for="recommed-3">
<input type="radio"
id="recommed-3"
name="recommed">Maybe</input>
</label>
</div>
<div class="form-control">
<label>Languages and Frameworks known
<small>(Check all that apply)</small>
</label>
<!-- Input Type Checkbox -->
<label for="inp-1">
<input type="checkbox"
name="inp">C</input></label>
<label for="inp-2">
<input type="checkbox"
name="inp">C++</input></label>
<label for="inp-3">
<input type="checkbox"
name="inp">C#</input></label>
<label for="inp-4">
<input type="checkbox"
name="inp">Java</input></label>
<label for="inp-5">
<input type="checkbox"
name="inp">Python</input></label>
<label for="inp-6">
<input type="checkbox"
name="inp">JavaScript</input></label>
<label for="inp-7">
<input type="checkbox"
name="inp">React</input></label>
<label for="inp-7">
<input type="checkbox"
name="inp">Angular</input></label>
<label for="inp-7">
<input type="checkbox"
name="inp">Django</input></label>
<label for="inp-7">
<input type="checkbox"
name="inp">Spring</input></label>
</div>
<div class="form-control">
<label for="comment">
Any comments or suggestions
</label>
<!-- multi-line text input control -->
<textarea name="comment" id="comment"
placeholder="Enter your comment here">
</textarea>
</div>
<!-- Multi-line Text Input Control -->
<button type="submit" value="submit">
Submit
</button>
</form>
</body>
</html>
Ouput :
Conclusion