Create a form in html In the Form element, Input element is the basic way to get in put from the user in a variety of situations. The INPUT tag is very versatile and can be used to create many kinds of user interface features.
Create a form in html given below is an INPUT checkbox example, which may be used to ask the user to fill in any number of responses. You can use this HTML code to check the names of the people listed whom you have heard about or known personally:
<INPUT Type=”checkbox” Name=”knows-Mohan”>Mohan Singh
<INPUT Type=”checkbox” Name=”knows-Lila”>Lila Shah
<INPUT Type=”checkbox” Name=”knows-Lal”>Lal Pati
Create a form in html given below is an INPUT radio button example used to ask the user to fill in one and only one selection from a series of responses:
<INPUT Type=”radio” Name=”user-gender” Value=”M”> Male
<INPUT Type=”radio” Name=”user-gender” Value=”F”> Female
The input element has the following attributes:-
Used only with the image type.Possible values are top, middle and bottom and the define the relationship of the image to the text following it.
Create a form in html CHECKED (no value needed) specifies that this check box or radio button is checked by default. This is only appropriate for check boxes or radio buttons.
MAXLENGTH is the maximum number of characters that are accepted as input.
Specifies a symbolic name used in transferring and identifying the output from this element of the form.
Create a form in html Multi line text entry fields can be a specified as:
SIZE = WIDTH, HEIGHT
Defines the source file for the image when the attribute Type is set to image.
A single line text entry area (the TEXTAREA element is used for multiline text input). If the only element in the form has attribute text, the user can submit the form by pressing Enter key on the keyboard.
Defines what kind of input field is presented to the user.Possible values are as follows:
a. Check box
It is a single toggle button i.e on or off.
Specifies value set by the form without input from the user.
Submits the form. After the user clicks the image, the form is submitted and the x and y coordinates of the location and transmitted with the name/value pairs.
A field in which the user enters text, Create a form in html but the entered characters are represented as asterisks.
Collects information where there is one and only one possible value from a set of alternatives.
Resets the form to its default values.
A push button that causes the current form to be submitted into a query URL and sent to be a remote server.
Used for a single line of text. This uses the size and maxlength attributes. For multiple lines, use TEXTAREA. This is default.
Create a Form in HTML For a check box or a radio button, VALUE is specifies the value of the button when it is checked (unchecked checkboxes are disregarded when submitting queries). The default value for a check box radio button is “on”.
Create a form in html
<TITLE> FORM FOR THE JOB </TITLE>
<H1 align= “center”> EXECUTIVE FORM </H1>
<FORM METHOD=”POST” ACTION=”http://www.mcp.com/cgi-
<P><strong> Name: </strong>
<input TYPE=”TEXT” NAME=”theName”> </P>
<P><strong> Father’s/Husband Name: </strong>
<P> <strong> E-Mail id: </strong>
<P> <strong> Sex </strong>
<input checked Type=”radio” Name=”thesex”
<input Type=”radio” Name=”thesex”
<P> <strong> Educational Qualification: </strong>
<select name=”select menu”>
<OPTION SELECTED> None
<OPTION>12 from C.B.S.E
<OPTION>10 from C.B.S.E
<P> <strong> Which type of job you want: </strong>
<INPUT TYPE=”checkbox” Name=”per”>Permanent
<INPUT TYPE=”checkbox” Name=”adhoc”>Adhoc
<p> <input Type=”SUBMIT” Value=”Submit”>
<input Type=”RESET” VALUE=”Clear Form”></p>