Page 156 - CA_165_V2.0_Flipbook
P. 156
10. The correct method to set the background color of a table to green is ............................ .
i. <TABLE BACKCOLOR = "green"> ii. <TABLE BACKGROUND = "green">
iii. <TABLE COLOR = "green"> iv. <TABLE BGCOLOR = "green">
Ans. 1. ii. 2. i. 3. ii. 4. i. 5. ii. 6. iv. 7. i
8. i 9. iii. 10. iv
B. Fill in the blanks.
Complete the given code to create a table as shown in the image:
Deluxe Room Tariff
AC Non-AC
Type
2500 2000
1. <TABLE .........................=2 .........................="ForestGreen">
2. <TR><TH .........................=.........................>Deluxe Room Tariff</TH>
3. .........................<TH .........................=2>Type</TH><.........................>AC<......................... ><TH> NON AC
</TH>..........................
4. <TR> ......................... 2500 ......................... <TD> 2000</TD></TR>
</TABLE>
Ans. 1. border bgcolor
2. colspan 3
3. <tr>rowspan th /th </tr>
4. <td> </td>
C. Assertion and reasoning questions.
The following questions consist of two statements – Assertion (A) and Reason (R). Answer these
questions by selecting the appropriate option given below:
i. Both A and R are true and R is the correct explanation of A.
ii. Both A and R are true but R is not the correct explanation of A.
iii. A is true but R is false.
iv. A is false but R is true.
1. Assertion (A): The BORDER attribute in the <TABLE> tag is mandatory for creating a table in HTML.
Reasoning (R): The BORDER attribute is used to define the thickness of the table's border, but tables can
be created without it, as the attribute is optional.
2. Assertion (A): The <IMG> tag in HTML is used to insert images into a web page, and it is an empty tag.
Reason (R): The <IMG> tag requires the SRC attribute to specify the source of the image.
Ans. 1. iv. 2. i
154 Touchpad Computer Applications-X

