Mobiprep has created last-minute notes for all topics of HTML to help you with the revision of concepts for your university examinations. So let’s get started with the lecture notes on HTML.
Our team has curated a list of the most important questions asked in universities such as DU, DTU, VIT, SRM, IP, Pune University, Manipal University, and many more. The questions are created from the previous year's question papers of colleges and universities.
Forms
Question- 1) What are the tags used to create a form in HTML?
Answer: Some of the tags or elements used with <form> are: <input>, <textarea>, <button>, <select>, <option>, <optgroup>, <fieldset>, <label>.
Question- 2) What are the different input types in HTML?
Answer: HTML uses different type in <input>:
Text, Checkbox, Date, Submit, Password, Search, Reset, Hidden, Email, Number, url, etc.
These types are used as <input type= “text”>.
Question- 3) What are the different fields in a Form?
Answer: HTML forms have the ability to create single and multi-line fields to accept different types of input.
Single line fields- Username, password, Name etc.
<input type= “text”>
Multi- line fields- Comments, feedbacks, etc.
<input type= “textarea” rows=”5” cols=”50”>
Question- 4) Write a short note on Form Element in HTML.
Answer: HTML uses <form> tag for the same. The <form> element acts as a container for different input elements like text fields, checkboxes, submit buttons etc. An HTML form is a section of a document which contains controls such as text fields, password fields, checkboxes, radio buttons, submit button, menus etc.
Comments