adc

clicks

How to create the Simple Contact Us form using HTML and CSS Source Code

 How to create the Simple Contact Us form using HTML and CSS  Source Code

Create a simple contact form in HTML and CSS by supporting our HTML contact form code tutorial. Still, if you require to make your contact-us page in a jiffy, use our contact form dynamo that doesn't need any coding at all. Just sign up for free and make your HTML contact form directly on.


HTMLBefore we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

<!DOCTYPE html>
<html>
<head>
    <title>contact us</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
    <div class="container">
        <p>CONTACT US</p>
        <div class="login">
            <input class="input" type="text" name="" placeholder="Your Name">
            <input class="input" type="text" name="" placeholder="Your Email Address">
        </div>
        <div class="subject">
            <input type="text" name="" placeholder="subject" class="input">
        </div>

        <div class="message">
            <textarea class="area">Leave a Message</textarea>
        </div>
        <div class="btn">Send Message</div>
    </div>
</body>
</html>
CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser. 

*{
    margin: 0;
    padding: 0;
}

body{
    background-image: url(bg.jpg);
    background-size: cover;
    height: auto;
    font-family: roboto;
}

.container{
    max-width: 800px;
    height: 600px;
    background: #fff;
    margin: 50px auto;
    box-shadow: 0 0 20px rgba(72,98,85,0.6);
    box-sizing: border-box;
    padding: 40px;
    opacity: 0.7;
}

p{
    font-size: 50px;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: red;
}

.input, .message .area{
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 25px;
    border: 4px solid #c9eaea;
    font-size: 14px;
    border-radius: 7px;
    outline: none;
    transform: all 0.3s ease;
}


.login .input{
    width: 48%;
    float: left;
    margin-right: 4%;
}
.login .input:last-child{
    margin-right: 0;
}


.message .area{
    height: 200px;
}

.btn{
    width: 250px;
    height: 50px;
    background: red;
    line-height: 50px;
    text-align: center;
    border-radius: 5px;
    margin: 0 auto;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
}
.btn:hover{
    background: black;
    color: red;
    cursor: pointer;
}


Image link:Dwonload

 

 

 

Youtube Tutorial



How to create the Simple Contact Us form using HTML and CSS Source Code How to create the Simple Contact Us form using HTML and CSS  Source Code Reviewed by easycoding on August 06, 2020 Rating: 5

No comments:

Powered by Blogger.