Skip to main content

W3.CSS Contact Form

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/w3.css">
    <title>Saturday, revising W3.CSS lessons</title>
</head>
<body>
    <form action="#" class="w3-container w3-card-4 w3-light-gray w3-text-light-green w3-margin">
        <h2 class="w3-center">Contact us</h2>
        <div class="we-row w3-section">
            <div class="w3-col" style="width: 50px;">
                <i class="w3-xxlarge fa fa-user"></i>
            </div>
            <div class="w3-rest">
                <input type="text" name="fname" placeholder="First Name" class="w3-input w3-border w3-round">
            </div>
        </div>

        <div class="w3-row w3-section">
            <div class="w3-col" style="width: 50px;">
                <i class="w3-xxlarge fa fa-user"></i>
            </div>
            <div class="w3-rest">
                <input type="text" name="fname" placeholder="Last Name" class="w3-input w3-border w3-round">
            </div>
        </div>

        <div class="w3-row w3-section">
            <div class="w3-col" style="width: 50px;">
            <i class="w3-xxlarge fa fa-envelope-o"></i>
            </div>
            <div class="w3-rest">
                <input type="email" name="email" placeholder="Email Address" class="w3-input w3-border w3-round">
            </div>
        </div>

        <div class="w3-row w3-section">
            <div class="w3-col" style="width: 50px;">
            <i class="w3-xxlarge fa fa-phone"></i>
            </div>
            <div class="w3-rest">
                <input type="email" name="phone" placeholder="Phone Number" class="w3-input w3-border w3-round">
            </div>
        </div>
        
        <div class="w3-row w3-section">
            <div class="w3-col" style="width: 50px;">
            <i class="w3-xxlarge fa fa-pencil"></i>
            </div>
            <div class="w3-rest">
                <input type="text" name="Message" placeholder="Message" class="w3-input w3-border w3-round">
            </div>
        </div>
        <p>
        <button class="w3-button w3-ripple w3-block w3-green w3-round">Send</button>
        </p>
    </form>
</body>
</html>

Comments