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>
Code of create form
action is use for the sumbmsion of the form at the site or the page.