| Example |
| <input type=reset /> |
| |
| Example |
| <input type=submit value=”send it” /> |
| |
-
Text
Text creates the text entry field which is the most popular type of data entry field. Text is the default input type. If the text field is needed, there is no need to specify the type, as the default type of the <input> tag is “text.”
| Example |
| Enter your name: <input type=text /> |
| |
Name
Name assigns a name to the input field. It is required in most circumstances. The name of the input field is used to send the information to the server.
| Example |
| First Name: <input type=text name=”firstname” /> |
| |
Value
Value sets the value for the input field. It sets the default value for text and password fields, sets the button text in submit and reset buttons, and sets the values of choices in radio buttons.
| Example |
| <input type=submit value=”send this” /> |
| |
| |
The following example uses these tags to create a web page:
| Example |
<html> |
|
<head> |
<title> My list of jokes </title> |
</head> |
|
<body> |
|
<h1> My Registration Page </h1> |
|
<form name="registration" action="http://expertrating.com/registration.html"> |
|
First name: <input type=text name="realname" /> <br/><br/> |
Last name: <input type=text name="sirname" /> <br/><br/> |
Password: <input type=password name="pass"/> <br/><br/> |
Re-Type Password: <input type=password name="repass"/> <br/><br/> |
|
SEX<br/> |
<input type=radio name="sex" value="M"/> Male<br/> |
<input type=radio name="sex" value="F"/> Female<br/> |
|
<h2> Additional Information </h2> |
|
<input type=checkbox name="maillist"/> Put me on mail list. <br/><br/> |
|
<input type=reset /><br/><br/> |
|
<input type=submit value="Submit" /> |
</form> |
|
</body> |
</html> |
| |
| |
This is how the web page looks:

These tags enable the user to design a basic registration form. the creation of more complex forms is made possible through a detailed study of some more tags.
|