HTML Projects : Survey Form

In this article, you will learn to make survey form using HTML and CSS. The survey form will no do anything, however, you will be able to use HTML elements to create a form and style it with CSS. This survey form is a feedback for a school.The survey form will ask following questions:

  • Name, Email address and Roll no.
  • Ask to rate the overall experience with courses.
  • Ask for favorite courses.
  • The form will ask about the most liked thing about the school out of given choices.
  • Finally, ask for a few words on how to improve the student experience with the school.

Program Code:

<!DOCTYPE html>
    <title>HTML Projects - Survey Form</title>
    <meta charset="utf-8">
  font-size: 42px;
  color: #333333;
  font-family:helvetica, sans-serif;
  margin-left: 20%;
  margin: auto;
  width: 60%;
  padding: 1%;
#name-label, #email-label, #number-label,#name,#email, #number,#drop-down,label,fieldset,#comments{
  width: 150px;
<div id-"main">
<h1 id="title">Survey Form</h1>
<p id="description">This is a survey form for techschool.</p>

<form id="survey-form">
  <label id="name-label" for="name">*Name</label>
 <input type="text" name="name" id="name" placeholder="Enter Your Name" required>
 <label id="email-label" for="email">*Email</label>
 <input type="email" name="email" id="email" placeholder="[email protected]" required>
  <label id="number-label" for="number">*Roll No</label>
 <input type="number" name="number" id="number" placeholder="Enter roll number" min="0" max="100" required>
  <!-- Dropdown starts here -->
  <label for="drop-down">How do you rate our courses?</label>
  <select name="drop-down" id="drop-down">
    <option value="Excellent">Excellent
    <option value="Good">Good
    <option value="Fair">Fair
    <option value="Poor">Poor
  <!-- Fieldset begins here-->
    <legend>Which is your favorite course?</legend>
       <input type="radio" name="course" id="science" value="Science">
    <label for="science">Science</label>
       <input type="radio" name="course" id="math" value="Math">
     <label for="math">Mathematics</label>
       <input type="radio" name="course" id="art" value="Art">
    <label for="art">Art</label>
   <!-- Whaat do you like about -->
     <!-- Fieldset begins here-->
    <legend>What do you like about ?</legend>
       <input type="checkbox" name="school" id="classes" value="Classes">
    <label for="classes">Classes</label>
       <input type="checkbox" name="school" id="teachers" value="teachers">
     <label for="teachers">Teachers</label>
       <input type="checkbox" name="school" id="culture" value="Food">
    <label for="culture">Culture</label>
  <!-- Textarea begins -->
  <textarea id="comments" rows="5" columns="500">
    Help us improve. Enter your suggestion s.
  <!-- submit button -->
  <input type="submit" id="submit" value="Submit">

Output: Survey Form

HTML Projects - Survey Form
Figure 1 – HTML Projects – Survey Form


Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.