ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
FAQ
Login
 
XHTML Tutorial - Index
XHTML Tutorial - Introduction to XHTML
XHTML Tutorial - Formatting
XHTML Tutorial - Links
XHTML Tutorial - Images
XHTML Tutorial - Forms
XHTML Tutorial - Tables
XHTML Tutorial - Frames
XHTML Tutorial - Style Sheets
XHTML Tutorial - Advanced Tags
     

 
Online Personal Trainer Certification
Test Search by Job Title
Find a Personal Trainer
Job Resources
Free Self Tests and Quizzes
Find a Lawyer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Six Sigma Green Belt Certification
Lean Management Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
SEO Certification
Online Photography Course & Certification
Online Business Writing Course & Certification
Baby Sitting Course & Certification
Time Manangement Certification
Health Club Management Certification
Selling Skills Certification
Forensic Skills Certification
Green Living Course  free!
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
  All Online Courses
   

   
   
   
   
   
   

   
  Home > Courses, Tutorials & eBooks > XHTML Tutorial > Forms
 
Previous  Next

XHTML Tutorial - Forms

   
                                                                             Page 2 of 5
 
  • Reset

    This value resets the form so that the form is in the way it was before anything was typed in.
Example
<input type=reset />
 
  • Submit

    Submit creates the submit button which submits the form to the server. There can be two submit buttons on a form. To do this, the submit button has to be given the same name but different values.
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.

     

 

 
     
Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
 
© ExpertRating 2006. All Rights Reserved.