In this tutorial, we will learn about HTML Form. HTML forms are used to add form in web page get data from the user. For example, you want to add login form or contact form in your page in this case you can add HTML form element in your web page.
To add form in your web page you have to add form tag in your code. In between start and end of this form tag you can add input tag to mention what of information user fill your form like password, text, file etc. In order to mention type user can fill-in form, you have to use type attribute of the input tag. Check this example where we will create a basic login form.
<form> <input type="text" placeholder="Enter Your Email"/> <input type="password" placeholder="Enter Your Password"/> <input type="submit" name="Login Now"/> </form>