Simple HTML Contact Form

HTML
<header class="ccheader"> <h1>HTML5 Contact Form</h1> </header> <div class="wrapper"> <form method="post" action="" class="ccform"> <div class="ccfield-prepend"> <span class="ccform-addon"><i class="fa fa-user fa-2x"></i></span> <input class="ccformfield" type="text" placeholder="Full Name" required> </div> <div class="ccfield-prepend"> <span class="ccform-addon"><i class="fa fa-envelope fa-2x"></i></span> <input class="ccformfield" type="text" placeholder="Email" required> </div> <div class="ccfield-prepend"> <span class="ccform-addon"><i class="fa fa-mobile-phone fa-2x"></i></span> <input class="ccformfield" type="text" placeholder="Phone"> </div> <div class="ccfield-prepend"> <span class="ccform-addon"><i class="fa fa-info fa-2x"></i></span> <input class="ccformfield" type="text" placeholder="Subject" required> </div> <div class="ccfield-prepend"> <span class="ccform-addon"><i class="fa fa-comment fa-2x"></i></span> <textarea class="ccformfield" name="comments" rows="8" placeholder="Message" required></textarea> </div> <div class="ccfield-prepend"> <input class="ccbtn" type="submit" value="Submit"> </div> </form> </div> <div class="credit"> <a href="http://codeconvey.com/creating-simple-html5-contact-form/" target="_blank">Find more Details here</a> </div>
CSS
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700); body { background: #f29107; color: #fff; font-weight: 400; font-size: 1em; font-family: 'Lato', Arial, sans-serif; margin:0; padding:0; padding-bottom:60px; } .ccheader { margin: 0 auto; padding: 2em; text-align: center; } .ccheader h1 { margin: 0; font-weight: 300; font-size: 2.5em; line-height: 1.3; } .ccheader { margin: 0 auto; padding: 2em; text-align: center; } .ccheader h1 { margin: 0; font-weight: 300; font-size: 2.5em; line-height: 1.3; } /* Form CSS*/ .ccform { margin: 0 auto; width: 800px; } .ccfield-prepend{ margin-bottom:10px; width:100%; } .ccform-addon{ color:#f8ae45; float:left; padding:8px; width:8%; background:#FFFFFF; text-align:center; } .ccformfield { color:#000000; background:#FFFFFF; border:none; padding:15.5px; width:91.9%; display:block; font-family: 'Lato',Arial,sans-serif; font-size:14px; } .ccformfield { font-family: 'Lato',Arial,sans-serif; } .ccbtn{ display:block; border:none; background:#f8ae45; color:#FFFFFF; padding:12px 25px; cursor:pointer; text-decoration:none; font-weight:bold; } .ccbtn:hover{ background:#d8850e; } .credit { width: 800px; clear:both; margin:0 auto; line-height:25px; padding: 25px 50px; text-align: center; } .credit em{ margin-right:5px; } .credit a { color: #000; font-weight: bold; text-decoration: none; }
JAVASCRIPT
Expand for more options Login