HTML <form> Tag Example (Application Form)

HTML Code:

<form action="#" method="post">
  Name: <input type="text" name="name">

  Email: <input type="email" name="email">

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

  Course:
  <select name="course">
    <option value="bca">BCA</option>
    <option value="bsc">B.Sc</option>
    <option value="msc">M.Sc</option>
  </select>

  Comments:
  <textarea name="comments"></textarea>

  <input type="submit" value="Submit">
</form>
  

Output in Browser:


Male Female

Note: The <form> tag is used to collect user input. It contains fields like <input>, <select>, and <textarea>.