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. The contact form snippets are written in HTML and CSS to make the authentication process as easy as possible. A prominent profile picture appears at the top of the page, creating a strong first impression. Additionally, two entry fields are included for the username and user's email ID, and subtle placeholders are used to guide the user through the process. A message box is also included, allowing the user to write the message they wish to convey. Lastly, a send button is included, with a distinctive hover effect to make the button stand out. With CSS, the contact form can be sized to fit different screen sizes, so it's easy to view on all devices. With this HTML and CSS contact form snippet, you not only pass on 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 - learningrobo</title> <meta name="description" content="Form UI design - learningrobo"> <meta name="author" content="w3pupil.com"> <meta name="keywords" content="form,responsive,learningrobo.com,html & css projects,project,profile card"> <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/2019/10/22/13/43/man-4568761_1280.jpg" 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-image: linear-gradient(-225deg, #3D4E81 0%, #5753C9 48%, #6E7FF3 100%);
}
.section1{
    height:100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
}
.card{
    display: flex;
    flex-direction:row;
    justify-content: center;
    border-radius:10px;
    width:800px;
    height:540px;
    padding:0px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color:#121212;
}
.cardin1{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:40%;
    padding:0px;
    height:540px;
}
.cardin1 img{
    width: 100%;
    height:100%;
    border-radius:10px;
    margin:0px;
    object-fit: cover;
}
.cardin2{
    display: flex;
    flex-direction:column;
    justify-content:space-evenly;
    align-items: center;
    width:60%;
    height:540px;
    padding:0px 20px;
}
.cardin2 h6{
    margin:0px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size:35px;
    color: #eeeeee;
    text-align: center;
    font-weight:900;
}
.cardin2 form input[type="email"],input[type="text"]{
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 25px;
    border: 5px solid #424242;
    width:400px;
    background-color: #121212;
    color: #eee;
}
.cardin2 textarea{
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 25px;
    border: 5px solid #424242;
    width:400px;
    resize: none;
    overflow-y:auto;
    background-color: #121212;
    color: #eee;
}
.cardin2 form input[type="submit"]{
    width:40%;
    padding:10px;
    border: none;
    border-radius: 15px;
    background-color: #424242;
    color:#ddd;
    transition: .5s;
}
.cardin2 form input[type="submit"]:hover{
    transform: scale(1.05);
    cursor: pointer;
}
@media only screen and (max-width: 1024px){
    .card{
        width:98%;
    }
    .cardin1{
        width:30%;
    }
    .cardin2{
        width:70%;
    }
    .cardin2 img{
        width:100%;
    }
}
@media only screen and (max-width: 630px){
    .section1{
        height:fit-content;
    }
    .card{
        width:100%;
        flex-direction:column;
        height:fit-content;
    }
    .cardin1{
        width: 100%;
    }
    .cardin2{
        width: 100%;
    }
    .cardin2 form input[type="email"],input[type="text"]{
        width:250px;
    }
    .cardin2 textarea{
        width:250px;
    }
    .cardin1 img{
        height:100%;
    }
}
.credit a{
    text-decoration: none;
    color: #eee;
    font-weight: 800;
}
.credit{
    color: #eee;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
We hope you would like this Contact me form Using HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Contact me form using 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

إرسال تعليق

Thank you
Learning robo team

Post a Comment (0)

أحدث أقدم
Learning Robo says...
code copied
Welcome