Contact us form in Html is a type of form used for contacting the owner/supplier/administration/customer support of the website or application. In the last session, we covered Responsive Black footer template.
Contact us form in Html:
It can be used for many purposes.
The image is related to the category of the website. It has a solid border. Then it has various fields. Name is used for the name of the user. Email and phone numbers are also required. Then the user has to mention the subject of contact. Then the user can explain his/her problem in the message field. After filling in all the fields there is a button “send”. Then after filling the fields of the form you can press the send button for sending your message to the customer support of the website or application.
You might be interested in it:
- Contact us form for a website
- Contact us form Html and CSS
- Login page in Html with CSS and javascript
How to create a contact us form?
For that we need something. So, you can create it using these steps.
Code of Html:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
<div class="background"> <div class="container"> <div class="screen"> <div class="screen-header"> <div class="screen-header-left"> <div class="screen-header-button close"></div> <div class="screen-header-button maximize"></div> <div class="screen-header-button minimize"></div> </div> <div class="screen-header-right"> <div class="screen-header-ellipsis"></div> <div class="screen-header-ellipsis"></div> <div class="screen-header-ellipsis"></div> </div> </div> <div class="screen-body"> <div class="screen-body-item left"> <div class="app-title"> <span>CONTACT</span> <span>US</span> </div> <div class="app-contact">CONTACT INFO : +92 333 0000</div> </div> <div class="screen-body-item"> <div class="app-form"> <div class="app-form-group"> <input class="app-form-control" placeholder="NAME" value="JD Khan"> </div> <div class="app-form-group"> <input class="app-form-control" placeholder="EMAIL"> </div> <div class="app-form-group"> <input class="app-form-control" placeholder="CONTACT NO"> </div> <div class="app-form-group message"> <input class="app-form-control" placeholder="MESSAGE"> </div> <div class="app-form-group buttons"> <button class="app-form-button">CANCEL</button> <button class="app-form-button">SEND</button> </div> </div> </div> </div> </div> </div> </div> |
Code of CSS:
Now copy this CSS code and then paste it to the CSS file which you have created in your editor.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
*, *:before, *:after { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { background: linear-gradient(to right, #ea1d6f 0%, #eb466b 100%); font-size: 12px; } body, button, input { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 1.4px; } .background { display: flex; min-height: 100vh; } .container { flex: 0 1 700px; margin: auto; padding: 10px; } .screen { position: relative; background: #3e3e3e; border-radius: 15px; } .screen:after { content: ''; display: block; position: absolute; top: 0; left: 20px; right: 20px; bottom: 0; border-radius: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); z-index: -1; } .screen-header { display: flex; align-items: center; padding: 10px 20px; background: #4d4d4f; border-top-left-radius: 15px; border-top-right-radius: 15px; } .screen-header-left { margin-right: auto; } .screen-header-button { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 8px; background: white; } .screen-header-button.close { background: #ed1c6f; } .screen-header-button.maximize { background: #e8e925; } .screen-header-button.minimize { background: #74c54f; } .screen-header-right { display: flex; } .screen-header-ellipsis { width: 3px; height: 3px; margin-left: 2px; border-radius: 8px; background: #999; } .screen-body { display: flex; } .screen-body-item { flex: 1; padding: 50px; } .screen-body-item.left { display: flex; flex-direction: column; } .app-title { display: flex; flex-direction: column; position: relative; color: #ea1d6f; font-size: 26px; } .app-title:after { content: ''; display: block; position: absolute; left: 0; bottom: -10px; width: 25px; height: 4px; background: #ea1d6f; } .app-contact { margin-top: auto; font-size: 8px; color: #888; } .app-form-group { margin-bottom: 15px; } .app-form-group.message { margin-top: 40px; } .app-form-group.buttons { margin-bottom: 0; text-align: right; } .app-form-control { width: 100%; padding: 10px 0; background: none; border: none; border-bottom: 1px solid #666; color: #ddd; font-size: 14px; text-transform: uppercase; outline: none; transition: border-color .2s; } .app-form-control::placeholder { color: #666; } .app-form-control:focus { border-bottom-color: #ddd; } .app-form-button { background: none; border: none; color: #ea1d6f; font-size: 14px; cursor: pointer; outline: none; } .app-form-button:hover { color: #b9134f; } .credits { display: flex; justify-content: center; align-items: center; margin-top: 20px; color: #ffa4bd; font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: normal; } .credits-link { display: flex; align-items: center; color: #fff; font-weight: bold; text-decoration: none; } .dribbble { width: 20px; height: 20px; margin: 0 5px; } @media screen and (max-width: 520px) { .screen-body { flex-direction: column; } .screen-body-item.left { margin-bottom: 30px; } .app-title { flex-direction: row; } .app-title span { margin-right: 12px; } .app-title:after { display: none; } } @media screen and (max-width: 600px) { .screen-body { padding: 40px; } .screen-body-item { padding: 0; } } |
After pasting all these codes into your files then go to the folder in which you have saved all these files.
By downloading these files you can save the template code.
If this post was helpful then must like and share.
Thanks for reading this article.
Download Source CodeClick to Download