Advertisement
Arnab_Manna

Using forms in html

Jun 3rd, 2021
1,620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.                 <title>forms in HTML</title>
  5. </head>
  6. <body>
  7.                 <div>
  8.                                 <h1>Travel form for School trip</h1>
  9.                                 <form action="form.php">
  10.                                                 <input type="text" placeholder="enter your name">
  11.                                                 <br>
  12.                                                
  13.                                                 <label for="sectionida">
  14.                                                 <input type="radio" value="Section A" name="Section" id="sectionida">Section A
  15.                                                 </label>
  16.                                                 <label for="sectionidb">
  17.                                                                 <input type="radio" value="Section B" name="Section" id="sectionidb">Section B
  18.                                                
  19.                                                 </label>
  20.                                                 <label for="sectionidc">
  21.                                                                 <input type="radio" value="Section C" name="Section" id="sectionidc">Section B
  22.                                                
  23.                                                 </label>
  24.                                                 <label>
  25.                                     <br>   
  26.                                                 <input type="checkbox" name="want Food Canteen card" id="FoodCanteen" class="red">food canteen pass<br>
  27.                                                 <textarea name="explain"
  28.       id="explain" cols="30" rows="10"
  29.       placeholder="Explain why you want to join"></textarea>
  30. <br>
  31.  
  32. </label>
  33.            <input class="favorite styled"
  34.       type="button"
  35.       value="Add to favorites">
  36.        <input type="submit" value="SUBMIT">
  37.                                                 <input type="reset">
  38.                                                 <br>
  39.        
  40.        <select name="car" id="car">Select your car
  41.        <option value="no car">select your car</option>
  42.        <option value="Omni">OMNI</option>
  43.        <option value="lemborgini">lemborgini</option>
  44.        <option value="Bugati">Bugati</option>
  45.        <option value="lory">lory</option>
  46.        </select>
  47.        
  48.                                 </form>
  49.                 </div>
  50. </body>
  51. </html>
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement