top of page

HTML Notes

mobiprep (6).png

HTML

mobiprep (6).png

HTML Tags and Elements

mobiprep (6).png

Attributes and Hyperlinks

mobiprep (6).png

Headings and Lists

mobiprep (6).png

Class and id attributes

mobiprep (6).png

Semantic Elements

mobiprep (6).png

Inline and Block-Level Elements

mobiprep (6).png

Div and Span

mobiprep (6).png

img

mobiprep (6).png

Tables

mobiprep (6).png

Forms

Heading

Q

1

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

LRM_EXPORT_207556595493866_20190724_1939

Ans

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

LRM_EXPORT_207556595493866_20190724_1939

Q

2

What are the different input types in HTML?

LRM_EXPORT_207556595493866_20190724_1939

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

LRM_EXPORT_207556595493866_20190724_1939

Q

3

What are the different fields in a Form?

LRM_EXPORT_207556595493866_20190724_1939

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

LRM_EXPORT_207556595493866_20190724_1939

Q

4

Write a short note on Form Element in HTML.

LRM_EXPORT_207556595493866_20190724_1939

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.

LRM_EXPORT_207556595493866_20190724_1939
bottom of page