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

The 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 pages for every website.

 

What Contact Us page includes?

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

 

3 Tips to make Contact Us page better

  • Make user-friendly neat and simple designs.
  • 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. On this page, I haven’t used 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 information/contents are inside the ‘container’ div. Inside the container, I have used other two divs, one for images and another for contact forms and social media links.


As you can see in the above image, the ‘container’ div has a box shadow which makes its design look much better. The whole page is completely responsive i.e. it can be used on each and every device with different screen widths. I have also added the entrance animation on the page load with pure CSS. When you reload the page the container will slide down from the top to its exact position and the contact form will slide 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 a CSS clip-pathIf you are going to use the pseudo-element without writing any content be sure that you have included the “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 are 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 into your file. Remember, you have to download the image yourself. I have used the SVG image but you can use images of other formats too. First, create an HTML file with the name index.html and paste the given codes into your HTML file. Note it, you’ve to create a file with a .html extension.

HTML

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

Second, create a CSS file with the name style.css and paste the given code into your CSS file. Note it, you’ve to create a file with a .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

Previous Post Next Post