InterviewSolution
Saved Bookmarks
| 1. |
What are forms and how to create forms in HTML? |
|
Answer» The HTML form is used to collect the USER inputs. HTML provides a <form> tag to create forms. To take input from the user we use the <input> tag INSIDE the form so that all collected user data can be sent to the server for processing. There are different input types like ‘BUTTON’, ‘checkbox’, ‘number’, ‘text’, ‘password’, ‘submit’ etc. <form action="/submit_data.php"> <label>Enter your name: </label> <input type="text" name="name" /> <label>Enter Mobile number </label> <input type="number" name="mobile_no"/> <input type="submit" VALUE="Submit"></form> |
|