upsidedown

SEM6: WT_HTML_forms

Jan 22nd, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title> Basic Form</title>
  4.  
  5. <body style="background-color:#E8E8E8"; >
  6.  
  7. <h1 align="center"> <img src="w3schoolslogo.gif">
  8.      <br>Basic Form</h1>
  9.     <h6 align="center"> <a href="http://w3schools.com" target="testframe" title="help">Click here to go to w3schools</a></h6>
  10. <hr>
  11. <p>
  12.  
  13. <form  name="input" action="html_form_action.asp" method="get">
  14.  
  15. <iframe src="http://www.google.co.in/" name="testframe" width="800" height="450" style="float:right;" > </iframe>
  16.  
  17.  
  18.  
  19. <fieldset>
  20. <legend>Personal information:</legend>
  21.  
  22. First name: <input type="text" name="firstname"><br><br>
  23. Last name: <input type="text" name="lastname"><br><br>
  24. Sex:  <input type="radio" name="sex" value="male">Male<br>
  25.  
  26. &nbsp &nbsp &nbsp &nbsp   <input type="radio" name="sex" value="female">Female<br><br>
  27.  
  28. Contact No.: <input type="text" name="Cntctno"><br><br>
  29. Address:<br> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp<textarea rows="4" cols="30">
  30.  
  31. </textarea>
  32.  
  33. </fieldset>
  34.  
  35. <fieldset>
  36. <legend>User information:</legend>
  37.  
  38. Username: <input type="text" name="usrname"><br><br>
  39. Password: <input type="password" name="pwd"><br><br>
  40. Confirm Password: <input type="password" name="Cnfrmpwd"><br>
  41.  
  42. </fieldset>
  43. <fieldset>
  44.  
  45. <legend>Other information:</legend>
  46.  
  47. <br> Favourite Car:<select name="Dropdown">
  48. <option value="volvo">Volvo</option>
  49. <option value="saab">Saab</option>
  50. <option value="fiat">Fiat</option>
  51. <option value="audi">Audi</option>
  52. </select>
  53. <br>
  54.  
  55. </fieldset>
  56. <br><br>
  57. <input type="checkbox" name="agree" value="yes">I agree to the terms and conditions<br>
  58. <input type="submit" value="Submit">
  59.  
  60. </form>
  61. </p>
  62.  
  63. <p>
  64.  
  65. <audio controls>
  66.  <source src="/Kalimba.mp3" type="audio/mpeg">
  67. </audio>
  68.  
  69. </p>
  70.  
  71. </body>
  72. </html>
  73.  
  74.  
  75.  
  76. <!try the foll: frames, form,tables,Form tools(listbox,checkbox,etc), hyperlinks>
Advertisement
Add Comment
Please, Sign In to add comment