Contact us page using Html and CSS





























Hello Developers, We provide you with a dynamic and eye-catching Contact us page using HTML & CSS that displays your information at a glance. This Contact us page snippet has been designed with accuracy using HTML & CSS. This contact form snippet combines HTML & CSS to provide an easy-to-use experience for the user. It includes entry fields for your name, email address & subject along with delicate placeholders that guide you through the form. The Contact us page also has a message box where you can write the message you want to convey. The contact form also includes a send button with a unique hover effect to make it stand out. You can provide contact information such as address, phone number & email address & website. Your contact form will always appear in an organized way whether it’s a desktop, laptop, tablet or smartphone. By using this HTML & CSS Contact us snippet, you are not only sharing information but you are also showing your commitment to professionalism and modern web design. All in all, use this innovative & creative Contact us page snippet to show off & interact with the whole world. Note: We have coded CSS in separate file and linked it to the HTML file to create the Contact us page snippet.

How to make Contact us page using 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 Card 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="container"> <div class="main"> <div class="box1"> <h2>Write us</h2> <form action="#" method="post"> <input type="text" name="name" id="name" placeholder="Name"><br> <input type="email" name="email" id="email" placeholder="Email"><br> <input type="text" name="subject" id="subject" placeholder="Subject"><br> <textarea name="message" id="message" cols="30" rows="10" placeholder="Message"></textarea><br> <button type="submit">Send Message</button> </form> </div> <div class="box2"> <h2>Contact information</h2> <p>We're open for any suggestion or just to have a chat. This is our sample Contact page. Do Follow and subscribe for more.</p> <div class="inbox2"> <div class="content"> <h3><span class="top"><i class="fa-solid fa-location-dot"></i>Address : </span>198 West 21th Street, Suite 721 New York NY 10016</h3> <h3><span class="top"><i class="fa-solid fa-phone-volume"></i>Phone : </span>+ 1235 2355 98</h3> <h3><span class="top"><i class="fa-solid fa-envelope"></i>Email : </span>info@yoursite.com</h3> <h3><span class="top"><i class="fa-solid fa-globe"></i>Website : </span>yoursite.com</h3> </div> </div> </div> </div> <div class="credit">Made with <span>❤ </span>by <a href="https://www.learningrobo.com/">learningrobo</a></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
**/
*{
    box-sizing: border-box;
}
body{
    font-family: 'Raleway', sans-serif;
    margin: 0%;
}
.container{
    width: 100%;
    min-height: 100vh;
    max-height:auto;
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content: center;
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}
.main{
    width: 80%;
    height: 600px;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.box1{
    width: 50%;
    height: 600px;
    background-color: #5C5470;
    border-radius: 15px 0px 0px 15px;
}
.box1 h2{
    color: white;
    margin: 35px;
}
input[type="text"]{
    width: 80%;
    border: none;
    border-bottom: 1px solid #352F44;
    background: transparent;
    outline: none;
    color: white;
    padding: 10px;
    margin-left: 30px;
    font-size: 15px;
    margin-top: 10px;
}
input[type="email"]{
    width: 80%;
    border: none;
    border-bottom: 1px solid #352F44;
    background: transparent;
    outline: none;
    color: white;
    padding: 10px;
    margin-left: 30px;
    font-size: 15px;
    margin-top: 15px;
}
textarea{
    width: 80%;
    border: none;
    border-bottom: 1px solid #352F44;
    background: transparent;
    outline: none;
    color: white;
    padding: 10px;
    margin-left: 30px;
    font-size: 15px;
    margin-top: 15px;
    max-height:200px;
    max-width:80%;
    min-width:80%;
}
input::placeholder,textarea::placeholder{
    color: aliceblue;
    font-family: 'Raleway', sans-serif;
}
button{
    padding: 15px;
    border: none;
    outline: none;
    background-color: #B9B4C7;
    margin: 20px 30px;
    border-radius: 5px;
    color: black;
    font-size: 15px;
    font-weight: bold;
}
button:hover{
    cursor: pointer;
    color:#84fab0;
    background-color: #352F44;
}
.box2{
    width: 50%;
    height: 600px;
    background-color: #352F44;
    border-radius: 0px 15px 15px 0px;
}
.box2 h2{
    color: white;
    margin: 35px;
}
.box2 p{
    margin: 0%;
    color: #bbbbbb;
    margin: -10px 35px 0px;
}
.inbox2{
    width: 80%;
    height: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: row;
}
.top i{
    font-size: 28px;
    margin:0px 20px 0px 0px;
}
.content{
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    color: white;
}
.content h3{
    font-size: 18px;
    font-weight: lighter;
    margin:0px 20px 0px 0px;
    text-align-last: center;
}
.top{
    font-weight: bold;
    
}
@media screen and (max-width:1024px){
    .container{
        width: 100%;
    }
    .main{
        width: 95%;
    }  
}
@media screen and (max-width:630px){
    .container{
        width: 100%;
        height: fit-content
    }
    .main{
        width: 100%;
        height: fit-content;
        flex-direction:column;
        align-items: center;
        row-gap: 10px;
        padding:10px 0px;
    }  
    .box1{
        width: 98%;
        height: fit-content;
        border-radius: 15px;
    }
    .box2{
        width: 98%;
        height: fit-content;
        border-radius: 15px;
    }
}
.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;
}
.credit span{
    color:tomato;
    font-size:20px;
}
We hope you would like this Contact us page using Html and CSS.

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

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

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