HTML Projects: Survey Form - CodicGyan

 HTML PROJECTS 1 - BUILD A SURVEY FORM


Survey Form Using Html Css 


In this Post article You will Learn How to make A Survey Form using HTML & CSS. Tis Survey Form will  no do anything, however you will able to use Html elements to create a form and style with CSS. This Survey Form will ask following questions :-

  • Name, E-mail, Age....
  • Which Options Best Describes You?
  • Would you recommend Codicgyan to a friend?
  • Things that should be improved in the future (Check all that apply)
  • Any comments or suggestions
  • And at Last Submit button



Video Tutorial :-


Source Code:- codicgyan.com

<!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-imagelinear-gradient(45deg#43cea2#185a9d);
            font-familyVerdana;
            text-aligncenter;
    
        }
        h1{
            color#fff;
        }

        /* Styling the Form (Color, Padding, Shadow) */
        form {
            background-color#fff;
            max-width500px;
            margin50px auto;
            padding30px 20px;
            box-shadow2px 5px 10px rgba(0000.5);
        }

        /* Styling form-control Class */
        .form-control {
            text-alignleft;
            margin-bottom25px;
        }

        /* Styling form-control Label */
        .form-control label {
            displayblock;
            margin-bottom10px;
        }

        /* Styling form-control input,
        select, textarea */
        .form-control input,
        .form-control select,
        .form-control textarea {
            border1px solid #777;
            border-radius2px;
            font-familyinherit;
            padding10px;
            displayblock;
            width95%;
        }

        /* Styling form-control Radio
        button and Checkbox */
        .form-control input[type="radio"],
        .form-control input[type="checkbox"] {
            displayinline-block;
            widthauto;
        }

        /* Styling Button */
        button {
            background-color#185a9d;
            colorwhite;
            border1px solid #777;
            border-radius2px;
            font-familyinherit;
            font-size21px;
            displayblock;
            width100%;
            margin-top50px;
            margin-bottom20px;
        }
    </style>
</head>

<body>
    <h1>Codic Gyan 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 recommend CodicGyan
                to a friend?
            </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>Things that should be improved in the future
                <small>(Check all that apply)</small>
            </label>
            <!-- Input Type Checkbox -->
            <label for="inp-1">
                <input type="checkbox"
                    name="inp">Front-end Development Projects</input></label>
            <label for="inp-2">
                <input type="radio"
                    name="inp">HTML</input></label>
            <label for="inp-3">
                <input type="radio"
                    name="inp">CSS</input></label>
            <label for="inp-4">
                <input type="radio"
                    name="inp">JavaScript</input></label>
          <label for="inp-7">
            <input type="radio"
              name="inp">JQuery</input></label>
            <label for="inp-5">
                <input type="checkbox"
                    name="inp">Back-end Development Projects</input></label>
            <label for="inp-6">
                <input type="radio"
                    name="inp">NodeJs</input></label>
            <label for="inp-7">
                <input type="radio"
                    name="inp">Php</input></label>
            <label for="inp-7">
                <input type="radio"
                    name="inp">MySQL</input></label>
            <label for="inp-7">
                <input type="radio"
                    name="inp">MongoDB</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>



OutPut :-




























I have recently start a Top 10 html css  javascript project - which enhance your skills, So do not miss any project then Subscribe by email if you do this then you will get latest notification of posts. 



Also I make tutorials on Youtube you can also watch there:-

Subscribe our channel for more Amazing Tutorials :-  Codic Gyan Youtube Channel




have a good day!





Please Do Not Enter Any Spam Link In The Comment Box.

Post a Comment (0)
Previous Post Next Post