Friday, October 17, 2014

Write a HTML program to demonstrate the use of <FORM> tag.

Write a HTML program to demonstrate the use of <FORM> tag. Code : form.html <html> <head> <title>example of FORM tag</title> </head> <body> <form> <table border="1" align="center"> <tr> <td>user name</td> <td><input type="text" name="user name"</td> </tr> <tr> <td>password</td> <td><input type="password" name="password"maxlength="6"></td> </tr> <tr> <td>address</td> <td><textarea rows="3" cols="10"></textarea></td> </tr> <tr> <td>city</td> <td><select name="city" ><option>ahmedabad</option> <option>baroda</option> <option>junagadh</option> <option>rajkot</option> </select></td> </tr> <tr> <td>date of birth</td> <td><input type="text" name="bdate"></td> </tr> <tr> <td>qualification</td> <td><select name="qualification"><option>b.c.a</option> <option>b.a</option> <option>b.com</option> <option>m.sc</option> </select></td> </tr> <tr> <td>gender</td> <td><input type="radio" name="gender">male <input type="radio" name="gender">female </td> </tr> <tr> <td>hobbies</td> <td><input type="checkbox" name="music">music <br> <input type="checkbox" name="game">game <br> <input type="checkbox" name="traveling">traveling </td> </tr> <tr> <td colspan ="2" align ="center"> <input type ="reset" name ="reset"> <input type ="submit" name ="submit"> <input type ="button" name ="ok" value ="ok"> </tr> </table> </form> </body> </html>

No comments: