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.
Page Contents
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.
Example:
<form>
<input type="text" placeholder="Enter Your Email"/>
<input type="password" placeholder="Enter Your Password"/>
<input type="submit" name="Login Now"/>
</form>

Parvesh Sandila is a passionate web and Mobile app developer from Jalandhar, Punjab, who has over six years of experience. Holding a Master’s degree in Computer Applications (2017), he has also mentored over 100 students in coding. In 2019, Parvesh founded Owlbuddy.com, a platform that provides free, high-quality programming tutorials in languages like Java, Python, Kotlin, PHP, and Android. His mission is to make tech education accessible to all aspiring developers.​