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
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
Personal Trainer Certification (Spanish)
Six Sigma Certification
Find a Personal Trainer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Master Black Belt Certification
Six Sigma Green Belt Certification
Life Coach Certification
Lean Management Certification
Lean Six Sigma Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
Business Analyst Certification
SEO Certification
Online Business Writing Course & Certification
Makeup Artist Certification
Baby Sitting Course & Certification
Time Management Certification
Health Club Management Certification
Medical Coding Certification
Medical Billing Certification
Business Analysis Course
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
Event Management Certification
Test Search by Job Title
Administrative Assistant Certification
Virtual Assistant 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.
<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.
<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.”
Enter your name: <input type=text />


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.

First Name: <input type=text name=”firstname” />


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.

<input type=submit value=”send this” />

The following example uses these tags to create a web page:




<title> My list of jokes </title>




<h1> My Registration Page </h1>

<form name="registration" action="">


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/>



<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" />






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 2015. All Rights Reserved.