Hello readers, Today in this blog you’ll learn how to create contact us page using HTML & CSS. Earlier, you have learned to Create responsive navigation bar using HTML & CSS. I have also created a blog on other cool stuffs of web designing.

Contact us page is a web page containing all the contact information regarding the organization or company to whom the particular website belongs to. It is one of the very essential page for every website.

 

What Contact Us page includes?

  • Social media links and contact number/email.
  • Contact Form.
  • Company Address (either on google map or text format).

 

3 Tips to make Contact Us page better

  • Make user friendly neat and simple design.
  • Add some animations.
  • Do not make the google map’s width 100%.

 

Today I will show you how you can create your own contact us page using HTML & CSS with awesome animation. In this page I haven’t use any plugin or library to animate it. It is animated with pure CSS. I have created a ‘main’ div at first and then a ‘container’ div inside the ‘main’ div. All the informations/contents are inside the ‘container’ div. Inside container I have used other two divs, one for image and another for contact form and social media links.


As you can see in the above image, the ‘container’ div has the box shadow which make its design look much better. The whole page is completely responsive i.e. it can be used in each and every devices with different screen width. I have also added the entrance animation on page load with pure css. When you reload the page the container will slide down from top to its exact position and the contact form will slide to left from right to its exact position. 


I have given the official color of each social media icon. The round shaped blue background at the top left of the screen is created with the “before” pseudo element and the arrow typed shape at the background of the image is created with CSS clip path. If you are going to use the pseudo element without writing any content be sure that you have included “position” property in both parent and child div.


If you’re feeling difficult to understand what I am saying. You can watch a full video tutorial on this program (Contact Us page in HTML & CSS).


You Might Also Like


Video Tutorial of Contact Us page in HTML & CSS


All this page design and animation is based on CSS. If you’re a beginner you can also create this type of contact us page. If you like this program (Contact Us page in HTML & CSS) and want to get source code. You can easily get the source code of this program. To get the source codes you just need to scroll down.

Contact Us page in HTML & CSS [Source Codes]

To create this program (Contact Us page in HTML & CSS). First, you need to create two files one HTML File and another one is CSS File. After creating these files just paste the following code in your file. Remember, you have to download the image youself. I have used the SVG image but you can use image of other format too. First, create an HTML file with the name of index.html and paste the given codes in your HTML file. Note it, you’ve to create a file with .html extension.

HTML

 Note: In the <textarea></textarea> tag, i have added some unnecessary text. So, remove that after pasting code. 

Second, create a CSS file with the name of style.css and paste the given code in your CSS file. Note it, you’ve to create a file with .css extension.

CSS

 

That’s all, now you’ve successfully created a contact us page using HTML & CSS. If your code does not work or you’ve faced any errors/problems then please comment down. If you feel this article had helped you, please share it with your friends.

Post a Comment

أحدث أقدم