You are on page 1of 4

FORMS AND FRAMES IN HTML

ANSWER THE FOLLOWING QUESTIONS

1.) It is a coding/programming language which is used to create text and graphics webpages for
a website.

a) Java b) Python c) Visual Basic d) HTML

2.) It is the easiest way to collect information from web page visitors.

a) Forms b) Detectors c) Checkers d) Collectors

3) With the help of text input controls any user can input or feed the text into the form a)

Text feed control b) Text enter control c) Text input control d) None of these

4.) The control box is made use for entering the text in a one line.

a) Text feedback control b) Text input control c) Text enter control d) None of these

5.) The text contents or special codes in HTML documents are called as

a) Links b) Tags c) Address d) None of these

6.) The HTML files are saved with the file extensions as

a) .docx b) .html or .htm c) .xlsx d) .accdb

7) The button that helps in controlling the visitors of the web page who uses only one choice
from the list of many choices.

a) TV remote button b) Shirt button c) Radio button d) None of these

8) It helps the user to clears inputted data that is entered into the form by making a click on the
reset button.

a) Erase button b) Clear button c) Delete button d) Reset button


1. Name the attributes which are used with the <INPUT>

tag. The attributes which are used with the <INPUT> tag are:
1. Type
2. Name
3. Value
4. Size
5. Maxlength

2. Which tag helps in creating a drop-down list on a form area? The <SELECT>
tag along with the <OPTION> tag is used to create a drop-down list on a form area.

3. Which attribute of <INPUT> tag specifies what type of form control will
be added to the form area?
The 'type' attribute of <INPUT> tag determines the type of form control that will be added to the
form area
4.Which tag adds a multi-line text box on the form area?
The <TEXTAREA> tag adds a multi-line text box on the form area.

5. Explain any two input elements.


Two input elements are as follows:

1. Text Box — A text box allows a user to enter alphanumeric data that is a combination of
characters and numbers. It creates a single line text box. We can add a text box to the form in
the following way:
Syntax: <INPUT Type= "Text">

2. Checkbox — A checkbox is like a toggle switch which helps the user to select or deselect
one or more items. We have to type the label next to the checkbox.
Syntax: <INPUT Type = "Checkbox" Name = "Hobbies" Value = "Reading">
6. Differences between Radio Button and Checkbox:
Radio Button Checkbox

Radio buttons are used when we want users Checkboxes are used when we want
to select only one option from a set of users to select multiple options from a
choices. list.

Radio buttons are typically represented as Checkboxes are typically represented


small circles or dots, and users can select as small square boxes with a check
only one of them at a time. mark inside them.

Selecting one option automatically deselects Users can check or uncheck


any previously selected option within the checkboxes independently.
same group.

2. Differences between Submit Button and Reset Button:


Submit Button Reset Button

Submit button is used to send the A reset button is used to clear or


data entered in the form to the reset the contents of a form,
server for reverting all form fields back to
processing. their default or initial values.

It is defined as follows: It is defined as follows:

<INPUT Type = "Submit" Value = "SEND"> <INPUT Type = "Reset" Value =


"RESET">
Shagun wants to customize the width and height of the textarea in her
form. How can she do it?
Shagun can use the Rows and Cols attribute of the <TEXTAREA> tag to customize the width and
height of the textarea in her form. Rows attribute defines the height of the textarea, and Cols
attribute defines the width of the text area. Example code for customizing the width and height
of the textarea is:

<TEXTAREA ROWS = "6" COLS = "50" NAME = "REMARKS">


Enter your remarks here.
</TEXTAREA>

You might also like