5.
Forms in HTML5
Take Off
(Page no. 72)
1. HREF, TARGET
2. Lists, Tables
3. font-size, font-family
4. Align, Border
Double Tap (Page no. 73)
1. <Form> ... Form element.. </Form>
2. Action and Method
Choose the correct option.
1. c. 2. a. 3. a.
4. (This question was printed incorrectly in the book. Please correct it in your textbook.)
Question: Which of the following values of TYPE attribute is used to create an action button control?
a. SELECT b. TEXT
c. BUTTON d. SUBMIT
Ans. c.
5. c. 6. b.
Tick ( ) the correct statements and cross ( ) the wrong ones.
1. 2. 3. 4. 5.
Q
A Answer the following questions:
1. HTML5 form is an interface of a web page that enables the user to enter data (such as names, e-mail
address, passwords, phone numbers, etc.) that is to be sent to the server for further processing.
2. To display multiple options in the form of a drop-down menu or list from which we can select
only one option at a time. This type of control is known as combo box.
8 Plus (Ver. 4.0)-VIII (Answer Key)
3. (This question was printed incorrectly in the book. Please correct it in your textbook.)
Question. What is the difference between the <Datalist> and <Select> elements?
Ans. The <datalist> element allows the user to add the input as he wishes, whereas the user has
the option to select an input from the provided list when using the <select> element.
The <SELECT> tag is used to add a drop-down list in the form. This tag produces a list of options
for the user with the help of <OPTION> tag. We can create a combo box using <SELECT> and
<OPTION> tags.
4. The <FORM> tag is used to create the form boundary on the web page. It is a container tag. All
other form related tags are used inside the opening <FORM> and closing </FORM> tags. The
<FORM> tag has three attributes, which are:
a. ACTION: This attribute is used to specify the action that will take place when we submit the form
values. It takes the URL of another web page or an e-mail address to receive the information.
b. METHOD: It specifies the type of method form will use to accept the values entered into form
fields. The most commonly used values for this attribute are POST and GET.
c. ENCTYPE: It is used to specify that how a web browser decodes the data before sending it to
the server.
Scratch Your Brain.
1.a. <INPUT TYPE=”BUTTON” VALUE=”Log IN”>
b. <SELECT NAME=”List”>
<OPTION>Mango
<OPTION>Orange
<OPTION>Grapes
</SELECT>
2. Competency-based/Application-based questions:
a. He can add Radio button or Check Box.
b. She can use <FORM> Tag.
Periodic Assessment–2
(Based on chapters 4 & 5)
A. Write the uses of the following HTML attributes of <IFRAME> tag:
1. Height attribute is used to specify the height of the frame.
2. Width attribute is used to specify the width of the frame.
3. Name attribute is used to specify the name of the frame. This name can be used in the TARGET
attribute of the <A> tag.
B. Write the HTML code to create the following form:
Do it yourself.
Plus (Ver. 4.0)-VIII (Answer Key) 9