web technologies chapter 8
Which of the following CSS3 pseudo-elements could be used to apply styles to the last row of a table?
:last-of-type
The purpose of the ________ element is to describe the contents of a table.
<caption>
Use the headers attribute on the ________ tag to correspond to the id attribute on a <th> tag.
<td>
Use the ________ tag pair to configure a table footer row group.
<tfoot> .. </tfoot>
Use ________ element to indicate column or row headings.
<th>
Use the ________ tag pair to configure table headings.
<th> </th>
Use the ________ tag pair to configure a table head row group.
<thead> .. </thead>
Use the ________ tag pair to begin and end a table row.
<tr> </tr>
Is the following code valid in HTML5? <table border="1" cellspacing="5" cellpadding="5">
No, the cellspacing and cellpadding attributes are obsolete.
Use the ________ attribute to configure the width of a table border.
border
To configure the table cells to share a common border and eliminate the default space between table cells configure ________.
border-collapse: collapse;
Which of the following CSS3 properties position the caption of a table?
caption
To define the distance between the cell text and the cell border in a table, use the ________ attribute.
cellpadding
The table element's ________ attribute is valid when using HTML5 syntax.
cellspacing
To define the distance between the edges of each cell in a table use the ________ attribute.
cellspacing
Use the ________ attribute on a <td> element to associate it with a table heading cell.
headers
A table with a width set to 600 pixels will look ________ on a monitor with resolution set to 640 × 480 than on a monitor with resolution set to 1024 × 768.
larger
Use the CSS ________ property to configure the cellpadding of a table.
padding
An HTML table is comprised of ________.
rows and columns
Select the item below that lists elements used in an HTML table:
table, tr, td
Which of the following CSS3 properties configure the alignment of text within a table?
text-align
The CSS border-spacing property can be used to configure the horizontal and vertical spacing of table borders.
true
The CSS vertical-align property can be used to configure the vertical alignment of the contents of a table cell.
true
Choose the best answer below to the following question: Is the following CSS code valid? table { border: 2px #000000 solid; border-collapse: collapse;
yes
Which of the following CSS3 pseudo-elements will be useful when configuring every other row of a table?
:nth-of-type(n)