TABLES IN HTML
Question
1.
Which of these tags belong to table? CBSE 2016
(a) <thead>,<body>,<tr>
(b) <table>,<head>,<tfoot>
(c) <table>,<tr>,<td>
(d) <table>,<tr>,<tt>
Answer: (c),<table>,<tr>,
<td> tags are used with table.
Question
2.
Which of the following tags gives a caption to the table?
(a) < caption >
(b) < summary >
(c) < frame >
(d) None of these
Answer:(a) <caption> tag is used
to give caption to the table.
Question
3.
Which of the following is used to
specify the beginning of a table’s row?
(a) <table>
(b) <tr>
(c) <row>
(d) <begin>
Answer:(b) <tr> tag indicates the
beginning of a table’s row.
Question
4.
HTML tag for row is
(a) <colspan>
(b) <tr>
(c) <rowspan>
(d) <td>
Answer: (b) HTML tag for row is
<tr>.
uestion
5.
Which tag is used to add columns in
the tables?
(a) <colspan>
(b) <td>
(c) <tr>
(d) None of these
Answer: (b) <td> is used to add
columns in the tables.
Question
6.
The tag is used to specify the
individual table data in a table.
(a) <tr>
(b) <td>
(c) <th>
(d)<table>
Answer:(b)The <td> tag is used to specify
the individual table data in a table.
Question
7.
In order to add border to a table,
border attribute is specified in which tag?
(a) <th>
(b) <table>
(c) <td>
(d) <tr>
Answer:(b) border attribute is specified in
<table> tag.
Question
8.
The attribute used to set the border
color of a table is
(a) border
(b) bordercolor
(c) color
(d) border color
Answer:(b) bordercolor is used to set the
border color of a table.
Question
9.
The frame attribute contains types of
values.
(a) 9
(b) 3
(c) 6
(d) 4
Answer: (a) The frame attribute contains 9
types of values.
uestion
10.
Which of the following is an attribute
of < table > tag?
(a) src
(b) cellpadding
(c) link
(d) bold
Answer:(b) cellpadding is an attribute of
<table> tag.
Question
11.
Which one of the following is not an
option for aligning data in a table?
(a) justify
(b) right
(c) left
(d) center
Answer:(a) justify option is not used for
aligning data in a table
estion
12.
Which attribute of the < table >
tag is used to set an image in the background of a table?
(a) bgcolor
(b) background
(c) frame
(d) rules
Answer:(b) background attribute is used to set
an image in the background of a table.
Question
13.
The attribute used to specify the
background cofor of a table is
(a) color
(b) bgtable
(c) backcolor
(d) bgcolor
Answer: (d) bgcolor is used to specify the
background color of a table.
Question
14.
The two common attributes of the
<img> and the <table> tag are
(a) src and height
(b) height and width
(c) border and src .
(d) they do not have any common
attributes.
Answer:(b) height and width are common
attributes of the <img> tag and the <table> tag.
Question
15.
border, frame, cellspacing,
cellpadding, align are the attributes of
(a) <body> tag
(b) <img> tag
(c) <table> tag
(d) None of these
Answer: (c) border, frame, cellspacing,
cellpadding, align are the attributes of <table> tag.
Question
16.
Which of the following is not an
attribute of < table > tag?
(a) border
(b) background
(c) bgcolor
(d) src
Answer:(d) src is not an attribute of
<table> tag.
Question
17.
In the <td> tag, td stands for
(a) Table Data
(b) Table Time and Date
(c) Table Date
(d) None of these
Answer:(a) td stands for Table Data.
Question
18.
What is the correct HTML code to left
align the content inside a table cell?
(a) <td valign = “left”>
(b) <td align = “left”>
(c) <td left align >
(d) <td left>
Answer:(b) <td align = “left”>
Question
19.
Choose the correct HTML code to right
align the content inside a table cell.
(a) <td align = “right” >
(b) <td valign = “right” >
(c) <td rightalign>
(d) <td right = “align” >
Answer: (a) <td align =”right”>
Question
20.
Combining two or more cells in a table
on a Web page is called
(a) merging
(b) spanning
(c) combining
(d) None of these
Answer:(b) Combining two or more cells in a
table on a Web page is called spanning
Write the HTML code for the following:-
1.
NAME |
AGE |
CLASS |
DREAM |
AJAY |
15 |
X |
SCIENTIST |
2.
RED |
|
BLUE |
YELLOW |
|
GREEN |
Comments
Post a Comment