How to Create a Form in HTML

This code shows how to create a form in html


<form action="mailform.php" method="post" name="feedback"> <table border=0> <tr> <td>First Name:</td><td><input type="text" name="fname" maxlength="20"></td> </tr><tr> <td>Last Name:</td><td><input type="text" name="fname" maxlength="20"></td> </tr><tr> <td>Email:</td><td><input type="text" name="fname" maxlength="20"></td> </tr><tr> <td valign="top">Comments:</td> <td><textarea name="comments" cols="40" rows="7">Enter your comments here.< /textarea> </tr> <tr> <td> </td> <td><input name="Submit" type="submit" value="Submit"> <input name="Reset" type="reset" value="Reset"></td> </tr> </table> </form>


Comments

Author: Sanjay21 Jul 2010 Member Level: Silver   Points : 1

Code of create form





action is use for the sumbmsion of the form at the site or the page.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: