HTML Notes
.png)
HTML
.png)
HTML Tags and Elements
.png)
Attributes and Hyperlinks
.png)
Headings and Lists
.png)
Class and id attributes
.png)
Semantic Elements
.png)
Inline and Block-Level Elements
.png)
Div and Span
.png)
img
.png)
Tables
.png)
Forms
Heading
Q
1
What are the tags used to create a form in HTML?

Ans
Some of the tags or elements used with <form> are: <input>, <textarea>, <button>, <select>, <option>, <optgroup>, <fieldset>, <label>.

Q
2
What are the different input types in HTML?

Ans
HTML uses different type in<input>:
Text, Checkbox, Date, Submit, Password, Search,m Reset, Hidden, Email, Number, url, etc.
These types are used as <input type= “text”>.

Q
3
What are the different fields in a Form?

Ans
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”>

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

Ans
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.
