R

Ram Sharma • 193.86K Points
Coach

Q. Which tag is used to create an HTML form for user input?

  • (A) <form>
  • (B) <input>
  • (C) <form_put>
  • (D) <form_get>

Explanation by: Jatin Dubey
The <form> tag is used to create an HTML form for user input.

The <form> element can contain one or more of the following form elements:

<input>
<textarea>
<button>
<select>
<option>
<optgroup>
<fieldset>
<label>
<output>

Example:

<form action="/action_page.php" method="get">
  <input type="checkbox" name="vehicle1" value="Bike">
  <label for="vehicle1"> I have a bike</label><br>
  <input type="checkbox" name="vehicle2" value="Car">
  <label for="vehicle2"> I have a car</label><br>
  <input type="checkbox" name="vehicle3" value="Boat" checked>
  <label for="vehicle3"> I have a boat</label><br><br>
  <input type="submit" value="Submit">
</form>

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.