In this tutorial we will learn about HTML Form. HTML forms are use to add form in web page get data from 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 ending 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 input tag. Check this example where we will create basic login form.


    <input type="text"  placeholder="Enter Your Email"/>
    <input type="password" placeholder="Enter Your Password"/>
    <input type="submit" name="Login Now"/>


Spread the love