HTML Forms

<form> tag is used to create form for user input. Form has different input elements to take user input like text fields, check boxes, radio buttons, textarea, browse button, submit button. Form has method attribute that provide the way to connect from the server.

We describe here these attributes and different input fields with examples -

<form action="index.php" method="post">
    Name : <input type="text" name="name" />
    Email : <input type="text" name="email" />
    Address : <textarea></textarea>
    City : <select name="city">
    Gender : 
    Male <input type="radio" name="" />  Female <input type="radio" name="" />
    Upload File : <input type="file" name="file" />
    Accept Terms & Conditions : <input type="checkbox" name="accept" />
    <input type="submit" name="submit" value="submit" />
    <input type="reset" name="Reset" value="reset" />

Name :
Email :
Address :
City :
Gender : Male
Upload File :
Accept Terms & Conditions:

Read more articles

General Knowledge

Learn Popular Language