HTML FORM | LEARN WEB DESIGNING WITH ME

0
54
Html Form

HTML FORM

Definition and Usage

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>

We have learn in the video that how to use above elements in <form> tag.

below is the HTML FORM coding for your reference

<!DOCTYPE html>
<html>
<head>
<title>Register</title>
</head>
<body>

<form method=”POST”>
First Name: <input type=”text” required=”” name=”firstname”><br>
Last Name : <input type=”tex” name=”lastname”><br>
Email : <input type=”Email” name=”email”><br>
Password : <input type=”Password” min=”5″ name=”Password”><br>
Birth date : <input type=”date” ><br>
Gender :<br>
<input type=”radio” name=”gender” value=”Male”>Male<br>
<input type=”radio” name=”gender” value=”Female”>Female<br>
<input Type=”radio” name=”gender” value=”Other”>Other<br>
Cars:<br>
<input type=”checkbox” name=”Aulto”>Aulto<br>
<input type=”checkbox” name=”Sail”>Sail<br>
<input type=”checkbox” name=”vento”>Vento<br>
City: <br>
<select name=”city”>
<option value=”Jaipur”>Jaipur</option>
<option value=”Jodhpur”>Jodhpur</option>
<option value=”Ajmer”>Ajmer</option>
<option value=”Udaipur”>Udaipur</option>
</select><br>

<input type=”submit” value=”Register”>
<input type=”reset” >
</form>

<div></div>
<span></span>

</body>
</html>

Hope this will help you and try it your self.

any query feel free to leave comment.

You May Interested

Web Hosting

HTML Self Closing Tags

Ultimate WordPress Guide for Beginners

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here