Skip to main content

FORM (How FORM is created)

 FORM 

1. Form is created using form tag

             <form>

               ......................

               ......................

            </form>

2. All the elements of form are placed inside form tag.

3. Attribute of form tag Name, Method and Action.

4. Elements of form tag Text box, Text area, Radio button, Check box , Dropbox, Submit button.


a. Text box / Input Field 

             Name: .............................

   Tag 

          <input type="text" name="name">

 

  Password

           <input type="password" name="password">


b. Radio button 

         Gender:  <input type="radio" name="gender">Male 

                       <input type="radio" name="gender">Female

c. Check box

                    <input type="checkbox" name="hobby"  value="cricket">cricket

                   <input type="checkbox" name="hobby"  value="hockey">hockey

d. Dropdown box 

                   <select name="subject">

                     <option value="physics">physics

                     <option value="maths">maths

                    <option value="chemistry">chemistry

                 </select>

e. Text area 

               <text area rows="50" cols="40"> </textarea>

f. Submit 

             <input type="Submit" value="Submit">

g. Reset

             <input type="Reset" value="Reset">

Comments

Post a Comment