{"id":132657,"date":"2023-03-23T06:38:34","date_gmt":"2023-03-23T06:38:34","guid":{"rendered":"https:\/\/phppot.com\/?p=20634"},"modified":"2023-03-23T06:38:34","modified_gmt":"2023-03-23T06:38:34","slug":"contact-us-page-design-html-form","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2023\/03\/23\/contact-us-page-design-html-form\/","title":{"rendered":"Contact Us Page Design \u2013 HTML Form"},"content":{"rendered":"<div class=\"modified-on\" readability=\"7.0909090909091\"> by <a href=\"https:\/\/phppot.com\/about\/\">Vincy<\/a>. Last modified on March 23rd, 2023.<\/div>\n<p>This article has HTML templates for contact form pages. All these templates are responsive to fit any viewports.<\/p>\n<p>On a responsive page, the site header menu can be toggled. Template 1 and 2 of this example has JavaScript function to perform the toggle events for a sliding menu in the mobile view.<\/p>\n<h2>Contact Form Template 1<\/h2>\n<p>This template has the contact form in the site footer. The footer contains three columns to show the contact form details.<\/p>\n<p>If you are creating a contact form page, it should clearly show the location and the contact details.<\/p>\n<p>In this template, the footer columns show these details with a contact form.<\/p>\n<p>The site header contains menu links and a hamburger icon. The hamburger icon can be seen in the mobile view only.<\/p>\n<p>The <a href=\"https:\/\/phppot.com\/css\/multilevel-dropdown-menu-with-pure-css\/\">header dropdown menu<\/a> will be shown on clicking that icon in the site banner.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-20637\" src=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template1-550x286.jpg\" alt=\"contact form template1\" width=\"550\" height=\"286\" srcset=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template1-550x286.jpg 550w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template1-300x156.jpg 300w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template1-768x399.jpg 768w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template1.jpg 1200w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\"><\/p>\n<p class=\"code-heading\">template-1\/index.html<\/p>\n<pre class=\"prettyprint\"><code class=\"language-html\">&lt;html&gt;\n&lt;head&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n&lt;link href=\"style.css\" rel=\"stylesheet\" type=\"text\/css\"&gt;\n&lt;\/head&gt;\n&lt;body&gt; &lt;div class=\"container\"&gt; &lt;div class=\"site-banner\"&gt; &lt;div class=\"header-menu\"&gt; &lt;a href=\"\"&gt;Logo&lt;\/a&gt; &lt;span id=\"menu-icon\" onClick=\"toggleMenu()\"&gt;&lt;img src=\"images\/menu.svg\" \/&gt;&lt;\/span&gt; &lt;span id=\"header-right-menu\"&gt; &lt;a href=\"#\"&gt;Our work&lt;\/a&gt; &lt;a href=\"#\"&gt;About&lt;\/a&gt; &lt;a href=\"#\"&gt;News&lt;\/a&gt; &lt;a href=\"#\" class=\"header-active\"&gt;Contact&lt;\/a&gt; &lt;\/span&gt; &lt;\/div&gt; &lt;h1 class=\"heading\"&gt;Contact Us&lt;\/h1&gt; &lt;\/div&gt;&lt;div class=\"footer\"&gt; &lt;div class=\"footer-column\"&gt;&lt;img class=\"map-image\" src=\"images\/location.jpg\" \/&gt;&lt;\/div&gt; &lt;div class=\"footer-column\"&gt; &lt;div class=\"tile-content\"&gt; &lt;h1&gt;Meet Us&lt;\/h1&gt; &lt;div class=\"contact-row\"&gt; &lt;img src=\"images\/phone.svg\"&gt;&lt;span class=\"tile-field\"&gt;+466723723666&lt;\/span&gt; &lt;\/div&gt; &lt;div class=\"contact-row\"&gt; &lt;img src=\"images\/at-sign.svg\"&gt;&lt;span class=\"tile-field\"&gt;contact@admin.com&lt;\/span&gt; &lt;\/div&gt; &lt;div class=\"contact-row\"&gt; &lt;img src=\"images\/map-pin.svg\"&gt;&lt;span class=\"tile-field\"&gt;1784 Griffin Street, Alabama&lt;\/span&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"footer-column contact-form-container\"&gt; &lt;div class=\"tile-content\"&gt; &lt;form method=\"POST\"&gt; &lt;h1&gt;Contact&lt;\/h1&gt; &lt;div class=\"contact-row\"&gt; &lt;input type=\"text\" class=\"form-field\" placeholder=\"Name\"&gt; &lt;\/div&gt; &lt;div class=\"contact-row\"&gt; &lt;textarea rows=\"5\" class=\"form-field\" placeholder=\"Message\"&gt;&lt;\/textarea&gt; &lt;\/div&gt; &lt;button class=\"button\"&gt;Send&lt;\/button&gt; &lt;\/form&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;script&gt; function toggleMenu() { var menuElement = document.getElementById(\"header-right-menu\"); if (menuElement.style.display === \"block\") { menuElement.style.display = \"none\"; } else { menuElement.style.display = \"block\"; } } &lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>The below CSS is created for this contact form template. It contains media queries for the <a href=\"https:\/\/phppot.com\/php\/responsive-contact-form-with-php\/\">responsiveness of the contact form<\/a> page.<\/p>\n<p class=\"code-heading\">template-1\/style.css<\/p>\n<pre class=\"prettyprint\"><code class=\"language-css\">body { font-family: Arial;\n} .container { max-width: 1180px; margin: 0 auto; line-height: 1.5;\n}\n\/* header style starts *\/\n.site-banner { min-height: 400px; background-image: url('images\/header-image.jpg'); background-size: cover; background-position: center; color: #ffffff;\n} .site-banner a { color: #ffffff; text-decoration: none; font-weight: bold; padding: 12px;\n} .header-menu { padding: 40px 20px;\n} #header-right-menu { float: right;\n} .header-active { background: rgba(0, 0, 0, 0.5); border-radius: 25px;\n} .heading { color: #ffffff; text-align: center; font-family: cursive; padding: 40px 0px; font-size: 3em; margin: 0px;\n}\n\/* header style ends *\/ .footer { display: flex;\n} .footer-column { width: 33.3%; float: left;\n} .map-image { width: 100%;\n} .contact-form-container { background-color: #eaeaea;\n} img { vertical-align: middle;\n} .tile-content { padding: 20px 40px;\n} .tile-content .contact-row { margin-bottom: 20px;\n} .tile-field { margin-left: 20px;\n} .form-field { width: 100%; padding: 10px 8px; border-radius: 4px; border: #d9d8d8 1px solid;\n} .button { color: #ffffff; padding: 10px 30px 10px 30px; border-radius: 20px; background: linear-gradient(to right, #08a9df, #12054a); border: 0px;\n} #menu-icon { display: none; float: right;\n} @media screen and (max-width: 1000px) { .footer-column { width: 50%; } .contact-form-container { width: 100%; } .footer { display: block; }\n} @media screen and (max-width: 540px) { #header-right-menu { float: none; display: none; } #header-right-menu a { display: block; } .heading { padding: 0px; } .tile-content { padding: 0px 20px; } .footer-column { width: 100%; } #menu-icon { display: block; float: right; }\n}\n<\/code><\/pre>\n<h2>Contact Form Template 2<\/h2>\n<p>This contact template shows the contact details, address, phone, and email. It offers a form with primary fields to let the user communicate with the site owner.<\/p>\n<p>This template has two columns in the site content area. The contact details and the contact form are shown in these two columns, respectively.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-20638\" src=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template2-550x305.jpg\" alt=\"contact form template2\" width=\"550\" height=\"305\" srcset=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template2-550x305.jpg 550w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template2-300x166.jpg 300w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template2-768x425.jpg 768w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template2.jpg 800w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\"><\/p>\n<p class=\"code-heading\">template-2\/index.html<\/p>\n<pre class=\"prettyprint\"><code class=\"language-html\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;title&gt;Contact - Form&lt;\/title&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"style.css\"&gt;\n&lt;\/head&gt;\n&lt;body&gt; &lt;div class=\"container\"&gt; &lt;div class=\"text-center\"&gt; &lt;h1&gt;Contact Us&lt;\/h1&gt; &lt;div&gt; Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore &lt;div&gt;et dolore magra aliqua. Ut enim ad minim veniam.&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"content\"&gt; &lt;div class=\"col-1\"&gt; &lt;div class=\"address-line\"&gt; &lt;img alt=\"location\" src=\"image\/marker.png\" class=\"icon\"&gt; &lt;div class=\"contact-info\"&gt; &lt;div class=\"contact-info-title\"&gt;Address&lt;\/div&gt; &lt;div&gt;1002 West 5th Ave,&lt;\/div&gt; &lt;div&gt;Alaska, New York,&lt;\/div&gt; &lt;div&gt;55060.&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"address-line\"&gt; &lt;img alt=\"location\" src=\"image\/phone.png\" class=\"icon\"&gt; &lt;div class=\"contact-info\"&gt; &lt;div class=\"contact-info-title\"&gt;Phone&lt;\/div&gt; &lt;div&gt;12523-4566-8954-8956.&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"address-line\"&gt; &lt;img alt=\"location\" src=\"image\/mail.png\" class=\"icon\"&gt; &lt;div class=\"contact-info\"&gt; &lt;div class=\"contact-info-title\"&gt;Email&lt;\/div&gt; &lt;div&gt;contactemail@gmail.com&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"col-2\"&gt; &lt;form&gt; &lt;div class=\"form-container\"&gt; &lt;h2&gt;Send Message&lt;\/h2&gt; &lt;div class=\"form-row\"&gt; &lt;label&gt;Full Name&lt;\/label&gt; &lt;div&gt; &lt;input type=\"text\" class=\"form-field\"&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;label&gt;Email&lt;\/label&gt; &lt;div&gt; &lt;input type=\"text\" class=\"form-field\"&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;label&gt;Type your message...&lt;\/label&gt; &lt;div&gt; &lt;input type=\"text\" class=\"form-field\"&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;input type=\"button\" class=\"send-btn\" value=\"Send\"&gt; &lt;\/div&gt; &lt;\/form&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>See the below CSS and include it in the template 2 HTML.<\/p>\n<p class=\"code-heading\">template-2\/style.css<\/p>\n<pre class=\"prettyprint\"><code class=\"language-css\">body { font-family: Arial; background-image: url('image\/bg.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;\n} .container { width: 950px; margin: 80px auto; color: white; line-height: 1.5;\n} .text-center { text-align: center;\n} .content { display: flex; margin-top: 40px;\n} .icon { background-color: white; border-radius: 30px; padding: 15px; vertical-align: top;\n} .contact-info { display: inline-block; padding: 4px 20px 0px 20px;\n} .address-line { margin-top: 40px;\n} .col-1 { width: 530px;\n} .col-2 { flex: 1 1 auto; background-color: white;\n} .form-container { color: #000; padding: 30px;\n} .contact-info-title { color: #01bdd4;\n} .form-row { padding-bottom: 30px;\n} .form-field { width: 100%; border: none; border-bottom: 1px solid #000;\n} .send-btn { border: 0px; padding: 12px 26px; background-color: #01bdd4; color: white;\n} @media all and (max-width: 1024px) { .container { width: auto; padding: 30px; } .col-1 { width: 360px; } } @media all and (max-width: 700px) { .content { display: block; } .col-2 { margin-top: 40px; } .col-1{ width:100%; }\n} @media all and (max-width: 500px) { .container { padding: 10px; }\n}\n<\/code><\/pre>\n<h2>Contact Form Template 3<\/h2>\n<p>Template 3 is a simple and clean theme for a contact form page. It displays a contact form with a few primary fields. Also, it shows only the vital contact details on the page.<\/p>\n<p>A simple contact template will encourage the end user to connect with you and increase the conversion rate.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-20639\" src=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template3-550x284.jpg\" alt=\"contact form template3\" width=\"550\" height=\"284\" srcset=\"https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template3-550x284.jpg 550w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template3-300x155.jpg 300w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template3-768x396.jpg 768w, https:\/\/phppot.com\/wp-content\/uploads\/2023\/03\/contact-form-template3.jpg 800w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\"><\/p>\n<p class=\"code-heading\">template-3\/index.html<\/p>\n<pre class=\"prettyprint\"><code class=\"language-html\">&lt;html&gt; &lt;head&gt; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt; &lt;link href=\"style.css\" rel=\"stylesheet\" type=\"text\/css\"&gt;\n&lt;\/head&gt; &lt;body&gt; &lt;div class=\"container\"&gt; &lt;div class=\"header-content\"&gt; &lt;a href=\"\"&gt;Logo&lt;\/a&gt; &lt;span id=\"menu-icon\" onClick=\"toggleMenu()\"&gt;&lt;img src=\"images\/menu.svg\" \/&gt;&lt;\/span&gt; &lt;span id=\"header-right-menu\"&gt; &lt;a href=\"#\"&gt;Services&lt;\/a&gt; &lt;a href=\"#\"&gt;Products&lt;\/a&gt; &lt;a href=\"#\"&gt;Pricing&lt;\/a&gt; &lt;a href=\"#\" class=\"header-active\"&gt;Contact Us&lt;\/a&gt; &lt;\/span&gt; &lt;\/div&gt; &lt;div class=\"inner-container\"&gt; &lt;div class=\"tile1\"&gt; &lt;div class=\"tile1-heading\"&gt;Get in touch&lt;\/div&gt; &lt;div class=\"form-row\"&gt;We are here for you! How can we help?&lt;\/div&gt; &lt;form&gt; &lt;div class=\"form-row\"&gt; &lt;input type=\"text\" class=\"form-field\" placeholder=\"Enter your name\"&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;input type=\"text\" class=\"form-field\" placeholder=\"Enter your email address\"&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;textarea class=\"form-field\" placeholder=\"Go ahead we are listening...\"&gt;&lt;\/textarea&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;input type=\"button\" class=\"form-field btn\" value=\"Submit\"&gt; &lt;\/div&gt; &lt;\/form&gt; &lt;\/div&gt; &lt;div class=\"tile2\"&gt; &lt;div class=\"tile2-image\"&gt; &lt;img src=\"images\/contact.png\"&gt; &lt;\/div&gt; &lt;div&gt; &lt;div class=\"form-row\"&gt; &lt;img src=\"images\/loaction.png\" class=\"contact-image\"&gt;&lt;span&gt;564 Alabama Avenue&lt;\/span&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;img src=\"images\/phone.png\" class=\"contact-image\"&gt;&lt;span&gt;+466723723666&lt;\/span&gt; &lt;\/div&gt; &lt;div class=\"form-row\"&gt; &lt;img src=\"images\/mail.png\" class=\"contact-image\"&gt;&lt;span&gt;contact@admin.com&lt;\/span&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;script&gt; function toggleMenu() { var menuElement = document.getElementById(\"header-right-menu\"); if (menuElement.style.display === \"block\") { menuElement.style.display = \"none\"; } else { menuElement.style.display = \"block\"; } } &lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt;\n<\/code><\/pre>\n<p>And the styles of this template three are shown below.<\/p>\n<p class=\"code-heading\">template-3\/style.css<\/p>\n<pre class=\"prettyprint\"><code class=\"language-css\">body { font-family: Arial; background-image: url('images\/bg.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed;\n} .container { border-radius: 16px; max-width: 1180px; margin: 0 30px;\n} a { color: #ffffff; text-decoration: none;\n} .header-content { font-weight: bold; width: 800px; margin: 20px auto;\n} #header-right-menu { float: right;\n} #header-right-menu a { padding: 12px;\n} .header-active{ color:#000;\n} .inner-container { width: 750px; margin: 80px auto; display: flex; background-color: white; border-radius: 12px; padding: 30px\n} .tile1 { width: 350px;\n} .tile2 { flex: 1 1 auto; padding: 0px 40px;\n} .tile1-heading { background: -webkit-linear-gradient(#0aa6bd, #f126bd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold; font-size: 1.5em;\n} .form-row { padding: 20px 0px 0px 0px;\n} .form-field { border-radius: 4px; width: 100%; padding: 15px; background-color: #f5f4fa; border: 0px;\n} .contact-image { padding: 10px; border-radius: 35px; border: 1px solid #a8a4a4; vertical-align: middle; margin-right: 20px; width: 16px; height: 16px;\n} textarea { height: 100px; font-family: Arial;\n} .btn { color: white; background: linear-gradient(to right, #0aa6bd, #f126bd);\n} .tile2-image img { width: 321px; height: 211px;\n} #menu-icon { display: none; float: right;\n} @media all and (max-width: 900px) { .inner-container { width: auto; display: block; margin: 30px auto; } .header-content { width: auto; } .tile1 { width: 100%; } .tile2 { padding: 0px; } .tile2-image img { width: 100%; height: auto; }\n} @media all and (max-width: 540px) { #header-right-menu { float: none; display: none; } #header-right-menu a { display: block; padding: 10px 0px; } #menu-icon { display: block; float: right; }\n} @media all and (max-width: 400px) { .container { padding: 10px; }\n}\n<\/code><\/pre>\n<p><a class=\"download\" href=\"https:\/\/phppot.com\/downloads\/php\/contact-us-page.zip\">Download<\/a><\/p>\n<p> <!-- #comments --> <\/p>\n<div class=\"related-articles\">\n<h2>Popular Articles<\/h2>\n<\/p><\/div>\n<p> <a href=\"https:\/\/phppot.com\/php\/contact-us-page\/#top\" class=\"top\">\u2191 Back to Top<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>by Vincy. Last modified on March 23rd, 2023. This article has HTML templates for contact form pages. All these templates are responsive to fit any viewports. On a responsive page, the site header menu can be toggled. Template 1 and 2 of this example has JavaScript function to perform the toggle events for a sliding [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":132658,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-132657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php-updates"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/132657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=132657"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/132657\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/132658"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=132657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=132657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=132657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}