Jun 6, 20222 min

Forms: HTML Class Notes

Updated: Oct 18, 2022

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.

  1. HTML Introduction

  2. HTML Tags and Elements

  3. Attributes and Hyperlinks

  4. Headings and Lists

  5. Class and id attributes

  6. Semantic Elements

  7. Inline and Block-Level Elements

  8. Div and Span

  9. Img

  10. Tables

  11. Forms

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.

  1. What are the tags used to create a form in HTML?

  2. What are the different input types in HTML?

  3. What are the different fields in a Form?

  4. Write a short note on Form Element in HTML.

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.


    250
    1