Deck 9: Table Basics
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/24
Play
Full screen (f)
Deck 9: Table Basics
1
Choose the recommended use of tables on web pages.
A) Use tables to format the layout of an entire page
B) Use tables to organize tabular information
C) Use tables to format hyperlinks
D) Use tables instead of unordered lists
A) Use tables to format the layout of an entire page
B) Use tables to organize tabular information
C) Use tables to format hyperlinks
D) Use tables instead of unordered lists
B
2
Use the ______ attribute on a td element to associate it with a table heading cell.
A) th
B) headers
C) heading
D) title
A) th
B) headers
C) heading
D) title
B
3
Choose the best answer below to the following question: Is the following CSS code valid?
Table { border: 2px #000000 solid;
Border-spacing: 0; }
A) Yes.
B) No, there is no border-spacing property.
C) No, there is no border property.
D) No, 0 is not a valid value for the border-spacing property.
Table { border: 2px #000000 solid;
Border-spacing: 0; }
A) Yes.
B) No, there is no border-spacing property.
C) No, there is no border property.
D) No, 0 is not a valid value for the border-spacing property.
A
4
Use the headers attribute on the ___ element to correspond to the id attribute on a ___ element.
A) tbody, table
B) td, th
C) td, tr
D) td, table
A) tbody, table
B) td, th
C) td, tr
D) td, table
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
5
Use the ____ element to configure a table heading cell.
A) td
B) th
C) head
D) tr
A) td
B) th
C) head
D) tr
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
6
The purpose of the _______ element is to describe the contents of a table.
A) summary
B) caption
C) title
D) border
A) summary
B) caption
C) title
D) border
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
7
Use the ________ element to configure a table footer row group.
A) thead
B) tgroup
C) tbody
D) tfoot
A) thead
B) tgroup
C) tbody
D) tfoot
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
8
To eliminate the space between table cells, use the ___________ property.
A) border: none;
B) border-style: 0;
C) border-spacing: 0;
D) cellspacing: 0;
A) border: none;
B) border-style: 0;
C) border-spacing: 0;
D) cellspacing: 0;
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
9
A table with a width set to 600 pixels will look _______ on a monitor with resolution set to 640 x 480 than on a monitor with resolution set to 1024 x 768
A) larger
B) smaller
C) the same
D) more distorted
A) larger
B) smaller
C) the same
D) more distorted
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
10
An HTML table is comprised of ____ and ______.
A) lines and text
B) headers and body
C) rows and columns
D) none of the above
A) lines and text
B) headers and body
C) rows and columns
D) none of the above
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
11
Use the _____ element to contain a table row.
A) td
B) tr
C) table
D) row
A) td
B) tr
C) table
D) row
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
12
Use the ______ element to contain a table data cell.
A) th
B) td
C) tr
D) table
A) th
B) td
C) tr
D) table
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
13
Use the ______ attribute to configure the browser to render default table and table cell borders.
A) tableborder
B) width
C) border
D) border-spacing
A) tableborder
B) width
C) border
D) border-spacing
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following CSS3 pseudo-elements will be useful when configuring every other row of a table?
A) :last-of-type
B) :nth-of-type(n)
C): every-other-type
D) This cannot be done with CSS.
A) :last-of-type
B) :nth-of-type(n)
C): every-other-type
D) This cannot be done with CSS.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following CSS3 pseudo-elements could be used to apply styles to the last row of a table?
A) :last-of-type
B) :last-row
C): tfoot
D) This cannot be done with CSS.
A) :last-of-type
B) :last-row
C): tfoot
D) This cannot be done with CSS.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
16
Is the following HTML code valid?
< table >
< tr >
< td >cell 1< /td >
< td >cell 2< /tr >
< /tr >
< /table >
A) Yes.
B) No, you cannot code two td elements within the same row
C) No, you cannot code a table with only one row
D) No, there is a missing closing td tag
< table >
< tr >
< td >cell 1< /td >
< td >cell 2< /tr >
< /tr >
< /table >
A) Yes.
B) No, you cannot code two td elements within the same row
C) No, you cannot code a table with only one row
D) No, there is a missing closing td tag
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
17
Use the ______ element to contain an HTML table.
A) th
B) td
C) tr
D) table
A) th
B) td
C) tr
D) table
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
18
Use the ________ element to configure a table head row group.
A) thead
B) tgroup
C) tbody
D) tfoot
A) thead
B) tgroup
C) tbody
D) tfoot
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
19
Use the CSS ______ property to configure the cellpadding of a table.
A) padding
B) margin
C) cellpadding
D) border-spacing
A) padding
B) margin
C) cellpadding
D) border-spacing
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
20
Use the th element to indicate a table column or row _____.
A) data
B) heading
C) summary
D) caption
A) data
B) heading
C) summary
D) caption
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
21
_____ The CSS border-spacing property can be used to configure the horizontal and vertical spacing of table borders.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following CSS3 properties position the caption of a table?
A) caption
B) caption-side
C) thead
D) summary
A) caption
B) caption-side
C) thead
D) summary
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
23
_____ The CSS vertical-align property can be used to configure the vertical alignment of the contents of a table cell.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following CSS3 properties configure the alignment of text within a table?
A) align
B) caption
C) text-align
D) border-spacing
True or False.
A) align
B) caption
C) text-align
D) border-spacing
True or False.
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck