How to make Contact me form in HTML and CSS











Hello Developers, Learning Robo offers a dynamic and visually appealing contact form snippet that shows your data at a glance. This contact form snippet was created precisely with HTML and CSS. This contact form snippet are written in HTML and CSS. It contains input fields for your username and email address, subtle placeholders to guide you through the form and a message field where you can write your message. The contact form includes a submit button with a unique hover effect that sets it apart from other signup forms. In addition to improving the user interface, the contact form snippet also includes a secure gateway through which you can easily send a message. Thank you to CSS, your contact form can respond to different screen sizes, so you can customize it for any device. With this HTML and CSS contact form snippet, you not only share information, but also demonstrate your commitment to professionalism and modern web design. Show yourself and interact with the world with this innovative and creative contact form snippet. Note: The CSS is stored in a separate file that is connected to the HTML file.

How to make Contact me form in HTML and CSS.[Source Code]

To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Form UI design - w3pupil</title> <meta name="description" content="Form UI design - learningrobo"> <meta name="author" content="learningrobo.com"> <meta name="keywords" content="form,responsive,learningrobo.com,html & css projects,project"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type=image/x-icon href="#"> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <script src="https://kit.fontawesome.com/5d72166fb5.js" crossorigin="anonymous"></script> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="section1"> <div class="card"> <div class="cardin1"> <img src="https://cdn.pixabay.com/photo/2017/11/10/05/48/user-2935527_1280.png" alt="inventor Thomas Edison"> </div> <div class="cardin2"> <h6>Contact Me</h6> <form> <input type="text" placeholder=" Enter your Name" required><br> <input type="email" placeholder=" Enter your Mail id" required><br> <textarea cols="10" rows="10" placeholder="Enter your Message"></textarea><br> <input type="submit" value="Send"> </form> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤ </span>by <a href="https://www.w3pupil.com/"> W3pupil</a></div> </div> </div> </div> <!--Check our website Regularly For New Snippets Post--> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to make a file with a .css extension.


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

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap');
*{
    box-sizing: border-box;
}
html{
    height: 100%;
}
body{
    font-family: Arial, sans-serif;
    height: 100%;
    background-color:#B7F8DB;
}
.section1{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card{
    display: flex;
    flex-direction:column;
    justify-content: center;
    border-radius:10px;
    width:400px;
    height:540px;
    padding:0px 0px 10px 0px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background-color: rgba(255,255,255, 0.90);
}
.cardin1{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:100%;
    padding:0px;
    height:120px;
}
.cardin1 img{
    width: 120px;
    height:120px;
    border-radius:50%;
    margin:-90px 0px 10px 0px;
    border:7px solid #B7F8DB;
    object-fit: cover;
}
.cardin2{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:100%;
    height:410px;
    padding:0px 20px;
}
.cardin2 h6{
    margin:0px 0px 10px 0px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size:30px;
    color: #121212;
    text-align: center;
    font-weight:900;
}
.cardin2 form input[type="email"],input[type="text"]{
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 2px solid #B7F8DB;
    width: 100%;
}
.cardin2 textarea{
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 2px solid #B7F8DB;
    width:300px;
    resize: none;
    overflow-y:auto;
}
.cardin2 form input[type="submit"]{
    width:60%;
    padding:10px;
    border: none;
    border-radius: 5px;
    background-color: #B7F8DB;
    color:#000;
    transition: .5s;
}
.cardin2 form input[type="submit"]:hover{
    transform: scale(1.05);
    cursor: pointer;
}
@media only screen and (max-width: 1024px){
    .cardin1{
        width: 100%;
    }
    .cardin2{
        width: 100%;
    }
    .cardin2 h2{
        text-align: center;
    }
}
@media only screen and (max-width: 630px){
    .card{
        width:98%;
        flex-direction:column;
        height: fit-content;
    }
    .cardin1{
        width: 100%;
        align-items: center;
    }
    .cardin2{
        width: 100%;
    }
}
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
}
.credit{
    color: #121212;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
We hope you would like this Contact me form in HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Contact me form in HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.

Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome