Table of Contents

Contact form html

Share Now :

Title : Contact form html | W3pupil

Description

Hello W3PUPIL!!! We offer you a dynamic and visually appealing Contact form html using only HTML & CSS that presents your information at a glance. This Contact form html snippet was created with precision using HTML and CSS.
The contact form snippet uses HTML and CSS to provide a user-friendly authentication experience. It includes entry fields for your user’s name and email address as well as subtle placeholders to guide your user through the contact form. It also has a message box where you can write your message. The contact form includes a submit button as well. You can also add your organization’s address in the left part of the contact form. Your contact form will always be presented in an organized way whether it’s a desktop, a laptop, a tablet, or a smartphone.
So by using this HTML and CSS Contact form html, you’re not just sharing information – you’re demonstrating your dedication to professionalism and contemporary web design. Overall, show off and interact with the world with this innovative and creative Contact form html snippet.

Let's know how to create a file..

Creating and managing files and folders efficiently is critical for smooth development. Below is a step-by-step guide.

W3pupil’s suggestion is to download and install Visual Studio Code.

  • After successfully completing the download and installation, open Visual Studio Code.
  • Create a new folder on your desktop.
  • Go to the file and then open the folder you created.
  • Then add a file for HTML with the extension “.html” or “.htm”.
  • Also add another file for CSS with the extension “.css”.
  • Now you have an empty HTML file and a CSS file ready for your code.

Let's know how to open a downloaded file..

  • After you download the snippet file from W3pupil, you will get a zip file.
  • After unzipping, you can open the file in Visual Studio Code.
  • Now you have the HTML file and the CSS file to work with.
  • Take your time to fully understand the functionality of the code before making the changes you want in the Contact form html snippet.

Let's take a look at a code snippet created by W3pupil team using HTML and CSS.

HTML SOURCE CODE LOGO

HTML Source Code

HTML (Hypertext Markup Language) is a standard markup language for creating web pages, defining their structure and content using a system of tags and elements. (index.html)

  <!--Hello Future Developer Thanks for Using w3pupil.com, Share & Support us-->
<div class="container">
    <div class="p1">
        <div class="contact-info">
            <h2>Contact Information</h2>
            <div class="info1">
                <p>we're are open for any suggestions and ideas</p>
            </div>
            <div class="info2">
                <div class="logo1">
                     
                </div>
                <span>123 Main Street, City, Country</span>
            </div>
            <div class="info3">
                <div class="logo2">
                    
                </div>
                <span>+1 (123) 456-7890</span>
            </div>
            <div class="info4">
                <div class="logo3">
                    
                </div>
                <span>contact@example.com</span>
            </div>
            <div class="info5">
                <div class="logo4">
                    
                </div>
                <a href="#" target="_blank">www.example.com</a>
            </div>
        </div>
        <div class="contact-form">
            <h2>Contact Us</h2>
            
                <div class="input-group">
                    <label for="" style="color: aliceblue">Name</label>
                    
                </div>
                <div class="input-group">
                    <label for="" style="color: aliceblue">Email</label>
                    
                </div>
                <div class="input-group">
                    <label for="" style="color: aliceblue">Subject</label>
                    
                </div>
                <div class="input-group">
                    <label for="" style="color: aliceblue">Message</label>
                    <textarea name="message"></textarea>
                </div>
                <div class="submit-btn">
                    
                </div>
            
        </div>
    </div>
<div class="credit">Made with <span>❤ </span>by <a href="https://www.w3pupil.com/">W3pupil</a></div>
</div>


<!--Check our website Regularly For New Snippets Post-->  
CSS SOURCE CODE IMAGE

CSS Source Code

CSS (Cascading Style Sheet) enhances website aesthetics and layout, applying styles and design elements to create a visually appealing and responsive user interface. (style.css)

  /** 
Hello Future Developer Thanks for Using w3pupil.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500&display=swap');
*{
    box-sizing: border-box;
}
body{
    margin:0px;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, #434343 0%, black 100%);
    font-family: 'Exo 2', sans-serif;
    height: 100vh;
    width:100%;
}
.p1{
    width: 800px;
    height: 500px;
    display: flex;
    border: 5px solid gray;
    border-radius: 15px;
}
.contact-info{
    width:50%;
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content:space-evenly;
}
.contact-info h2{
    font-size: 24px;
    margin-bottom: 20px;
}
.contact-info .info-item a{
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    transition: color 0.3s;
}
.contact-form{
    width:50%;
    background-color: #444;
    padding: 20px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.contact-form h2{
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}
.input-group{
    margin: 15px 0;
}
.input{
    width:100%;
    padding: 10px;
    background-color: #555;
    border: 1px solid #777;
    border-radius: 5px;
    color: #fff;
    outline: none;
}
textarea{
    width: 100%;
    height:100px;
    padding: 10px;
    background-color: #555;
    border: 1px solid #777;
    border-radius: 5px;
    color: #fff;
    outline: none;
}
.submit-btn{
    margin-top: 15px;
}
input[type="submit"]{
    background:aquamarine;
    color: black;
    padding: 10px 20px;
    border: none;
    height: 35px;
    width: 100px;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    border: 2px solid gray;
}
input[type="submit"]:hover{
    background:white;
    color: black;
    height: 36px;
    width: 102px;
}
.info1{
    display: flex;
    align-items: center;
}
.info2{
    display: flex;
    align-items: center;
    column-gap:10px;
    cursor: pointer;
}
.info3{
    display: flex;
    align-items: center;
    column-gap:10px;
    cursor: pointer;
}
.info4{
    display: flex;
    align-items: center;
    column-gap:10px;
    cursor: pointer;
}
.info5{
    display: flex;
    align-items: center;   
    column-gap:10px;
}
.info5 a{
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.info5 a:hover{
    color: lightcoral;
    text-decoration: underline;
}
.contact-info h2{
    color:aquamarine;
}
.contact-form h2{
    color: aquamarine;
}
.info2:hover{
    text-decoration: underline;
    color: lightcoral;
}
.info3:hover{
    text-decoration: underline;
    color: lightcoral;
}
.info4:hover{
    text-decoration: underline;
    color: lightcoral;
}
@media screen and (max-width: 630px){
    .container{
        padding:10px 0px;
        height: fit-content;
    }
    .p1{
        width:98%;
        height:fit-content;
        display: flex;
        flex-direction: column;
    }
    .contact-info,.contact-form{
        width:100%;
        height: fit-content;
        border-radius:10px;
    }
}
.credit a{
    text-decoration: none;
    color: #ddd;
    font-weight: 800;
}
.credit{
    color: #ddd;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
    color:tomato;
    font-size:20px;
}  

Note :

  • We have coded CSS in a separate file and linked to the HTML file for creating Contact form html snippet.

Download :

Share and Support W3pupil.com

Conclusion :

To change the code, you can download the source code files of the snippet. To improve your HTML and CSS skills, you can try rebuilding other creative HTML and CSS snippets available on W3pupil. If you have any technical questions, feel free to contact W3pupil. As soon as possible, we will do our best to resolve your request.

Like Reaction
Like Reaction
Like Reaction
Like Reaction
Like Reaction

LivePreview :