Posts

Showing posts with the label HTML & CSS forms

how to create a contact form with HTML and CSS

Image
How To Create a Contact Form Step 1) Add HTML Use a <form> element to process the input. You can learn more about this in our  PHP  tutorial. Then add inputs (with a matching label) for each field: Example < div  class ="container" >    < form  action ="action_page.php" >      < label  for ="fname" > First Name < /label >      < input  type ="text"  id ="fname"  name ="firstname"  placeholder ="Your name.." >      < label  for ="lname" > Last Name < /label >      < input  type ="text"  id ="lname"  name ="lastname"  placeholder ="Your last name.." >      < label  for ="country" > Country < /label >      < select  id ="country"  name ="country" >      ...