Contact Us Form Design using html and css

Hello friend, today you will learn in this blog that with the help of html and CSS you will learn to create a contact us form. We have previously designed many forms with the help of html and CSS, such as registration form and login form, you have come time to create Contact Us form design which you will learn to create in this blog.

Contact Us Form : You will know what a contact form is used for. Contact Us form allows visitors of a website to contact the owner of the site or those people. You must have visited many websites on the Internet and on most websites, Contact Us The form is used. Use of Contact Form is basically a set of questions to be filled by the visitor on the website. After being filled, it is sent to your email, which you can also see below this blog.

You can see in this image that we have shared the design by contact form. This contact Us form was designed by coding html and CSS only which you are going to learn in this blog. You may have seen many Contact Us forms designed, but that form is designed either by JavaScript or Jquery, which means that you will have to design it using html and CSS.

Contact Us Form Design Using HTML AND CSS Source Codes

First of all we know html code of Contact Us Form, we took a div whose class name is wrapper, took h2 tag inside this div, this tag is called heading tag. Under this tag we took form tag which took four div inside The class name of the first three is input-group and the class name of fourth is named button-group.

Inside the first div of the class input-group, we have taken two divs whose class name is input-box, inside these two divs, we have taken a label tag inside which the test is written, below the label tag is the input tag which is type text and class name name. It has been kept and this form has been required. Required means that when the input of the form is left field, then it alerts, so we use the required inside the input and took an i tag under this input. Here i is used for the font icon which is placed on the left side of the input field.

A similar tag has been written inside the other two input-group classes. Now inside the class button-group, we took a div whose name was named button-box and inside this class a button tag was taken whose type is submit and this button Inside I have taken the tag which has been done for the font icon and the text of the send message has been written outside this icon.

Now know about the css of this for, like always, the first thing is to zero the margin and padding to the page and to give the box-size the border-box that the html tag takes its own space o The space runs out. There is no problem in styling further, after this, the background color and font-family is given to the body. Here, the background color and font-family default of the entire page is changed.

And after that the class wrapper has been steeled by giving width height and color according to the form and the input inside this class has also been designed by styling the form which you see in the image above this form. You can also use it in your website and blog, if you know JavaScript and python well then you can use this form

When you click in the input field of this form, there is a color focus on the border of the input of the form and with this input field there is a color focus of the icon which you feel like a professional to see.

You are having difficulties in understanding the design of this form, which you can understand by watching this Contact Us Form video, which we have given below the tutorial video of this, which you can click and watch and understand today.

Video Tutorial of Contact Us Form Design Using HTML AND CSS 

I hope that you have understood by watching this contact form tutorial. And we would have also known about the code of this form which we have written in the form of this Contact us. If you are in this in the beginning or you know html and CSS then you must have understood this form easily.

If you want to get the source code of this form, then you can get it easily. We have given the source code of this form in two files, one is in html and the other is given in CSS code file by scrolling both these files below. Let's copy and paste this files into your file, which is easier to understand.



Post a Comment

Previous Post Next Post