Ads (728x90)

Techonlogy

Subscribe Here

Sponsor

Social Share

Recent

Business

Video

Gallery

videos

First Create an HTML page and  Form in it or copy paste the code  into your editor.

<html>
<head>
<title>Forms in HTML</title>
</head>
<body>
  • Name Attribute in form is use to just for meaningful name of your form.
  • Action Attribute in form is use to define the action when the form is submitted.
  • Method Attribute is use to specify an HTTP method when submitting the forms.
How to Create a simple HTML form<form name="Registration" method="post" action="http://hubkart.blogspot.in">
<table>
</tr>
<tr>
 <td valign="top">
  <label for="first_name">First Name :</label>
 </td>
 <td valign="top">
  <input  type="text" name="first_name" maxlength="50" size="30">
 </td>
</tr>

<tr>
 <td valign="top"">
  <label for="last_name">Last Name :</label>
 </td>
 <td valign="top">
  <input  type="text" name="last_name" maxlength="50" size="30">
 </td>
</tr>
<tr>
 <td valign="top">
  <label for="email">Email Address :</label>
 </td>
 <td valign="top">
  <input  type="text" name="email" maxlength="80" size="30">
 </td>

</tr>
<tr>
 <td valign="top">
  <label for="contact">Contact No :</label>
 </td>
 <td valign="top">
  <input  type="text" name="contact" maxlength="30" size="30">
 </td>
</tr>
<tr>
 <td valign="top">
  <label for="address">Address :</label>
 </td>
 <td valign="top">
  <textarea  name="address" maxlength="1000" cols="25" rows="6"></textarea>
 </td>

</tr>
<tr>
 <td colspan="2" style="text-align:center">
  <input type="submit" value="Register">  
 </td>
</tr>
</table>
</form>
</body>
</html>

Here is your HTML form , later we discuss about the form elements in detail.

Post a Comment