Create Feedback Form In HTML Code
Published: 2023-05-12 04:53:46

Hey Guys, Welcome To Our Blog, In Today's Blog We Are Going To See How To Create An Simple Feedback Using HTML Code Only.

A Feedback form is a form where user can enter their personal details and write about their point as feedback and submit it. The feedback may be in any form like events, trail classes, products, etc. So Likewise we are going to create this project using HTML Only.
So,  Let's Begin Our Feedback Form Project By Adding The Source Codes. For That, First, We Are Using The Html Code.

## Html Code For Feedback Form:-
```
<html>
    <head>
        <title>Feedback Form</title>
    </head>
    <body>
        <h1>Feedback Form</h1>
        <form
            action="mailto:simon.long@cit.ie"
            method="post"
            enctype="text/plain"
        >
            First Name :
            <input type="text" name="firstname" placeholder="Enter name here" />
            Second Name :
            <input
                type="text"
                name="secondname"
                placeholder="Enter surname here"
            />
            <br />
            <br />
            <!--It's important that both of these radio button have the same name so they behave as one component (i.e. Only one can be selected at a time)-->
            <input type="radio" name="gender" value="male" />Male<br />
            <input type="radio" name="gender" value="female" />Female <br />
            <br />
            <!--This uses the new HTML "email" INPUT type which will automatically validates the email address when the SUBMIT button is clicked-->
            email:
            <input type="email" name="mail" placeholder="e-mail address" />
            <br />
            <br />
            Comment :<br />
            <textarea rows="6" cols="50" name="commentfield"></textarea> <br />
            <select name="countychooser">
                <option value="cork">Cork</option>
                <option value="dublin">Dublin</option>
                <option value="galway">Galway</option>
                <option value="kerry">Kerry</option>
            </select>
            <br />
            <br />
            <input type="submit" value="Send Feedback" />
            <input type="reset" value="Reset" />
        </form>
    </body>
</html>

```
Here We have successfully added out HTML code. In this code first we create an title with h1 tag and creating an form class with method.

Now Inside Form class we started adding every contents. Like First name , Second name , Gender , Email , Comment(Feedback) and lastly Submit Button.

Each One is added with the Input tags with separate names and placeholders and the comment box which is feedback area is done with text area tag with name and cols.

Additionally , We have created a section for choosing country by drop down list and that is done with option tag with specify country name for selection.

Lastly we creating separate buttons which is "Send Feedback" and "Reset" Button with the help of input tags that consists of type and value.

So That's all we have created an feedback form using simple HTML . Now We can take a preview of our project in the mentioned output section.

Now We have Successfully created our Feedback Form Using HTML Code. You can use this project for your personnel needs and the respective lines of code are given with the code pen link mentioned below.

If you find out this Blog helpful, then make sure to search codewithrandom on Google for Front-end Projects with Source codes and make sure to Follow the Code with Random Instagram page.

WRITTEN BY - Ragunathan S