Maddog's HTML for Real People Chapter 10, Quiz

Copyright 1997 ...[ view copyright info ]...
[INDEX]         Ch 10, Q UIZ - Quiz Answers
Here are the answers to this chapter's quiz:

Regarding HTML tables, a "cell" is:
[   ] the border around table-data
[   ] a column or a row of table-data
[ X ] an imaginary box drawn around table-data
[   ] the border around a table

With regard to HTML tables, which of the following is NOT a task of the browser?
[   ] calculating placement/alignment of text in the cell
[ X ] determining what text goes inside a cell
[   ] calculating cell dimensions
[   ] calculating cell borders

TRUE or FALSE: Table borders are normally visible by default.
[   ] True
[ X ] False

Regarding HTML tables, which of the following correctly specifies a visible border?
[ X ] <TABLE BORDER=1>
[   ] <TD BORDER=5>
[   ] <TABLE BORDER="VISIBLE">
[   ] <BORDER=1>

TRUE or FALSE: If a border is specified for a table, the table is larger than if no border is specified
[ X ] True
[   ] False

TRUE or FALSE: It is permissable to place an entire HTML table inside a '<TD> <TD>' tag pair.
[ X ] True
[   ] False

TRUE or FALSE: In an HTML table, cells always line up in rows and columns
[ X ] True
[   ] False

Which of the following is NOT a valid HTML attribute of the 'TABLE' tag?
[   ] BORDER
[   ] ALIGN
[   ] WIDTH
[ X ] HEIGHT
[   ] CELLPADDING
[   ] CELLSPACING

Which of the following statements is NOT true regarding cells in tables?
[   ] cellpadding establishes the distance from the cell's contents (i.e., text or images) to the cell's border
[   ] cellspacing establishes an empty space around the cell
[   ] the table border is established by the 'BORDER' attribute
[ X ] the cell border is the same width as the table border

TRUE or FALSE: Cellspacing and cellpadding are properties of the cell that exist even if the border is OFF or set to zero
[ X ] True
[   ] False

When specified in the '<TABLE>' tag, which of the following attributes are recommendations only, i.e., they can be overidden by browser calculations?
[   ] WIDTH=10
[   ] CELLPADDING=0
[   ] BORDER=5
[ X ] both WIDTH=10 and CELLPADDING=0
[   ] none of the above

TRUE or FALSE: By default, the browser calculates the size and alignment of all cells, columns, and rows in a table.
[ X ] True
[   ] False

TRUE or FALSE: When specifying a table's width, it MUST be specified in screen pixels.
[   ] True
[ X ] False

Which of the following tables will be painted by the browser as specified in the HTML code fragment?
[   ] <TABLE BORDER=10 WIDTH=5 ><TR><TD>wowza!</TD></TR></TABLE>
[   ] <TABLE BORDER=0 WIDTH=5 ><TR><TD>wowza!</TD></TR></TABLE>
[   ] <TABLE WIDTH=5 CELLPADDING=10 ><TR><TD>wowza!</TD></TR></TABLE>
[ X ] <TABLE BORDER=10 WIDTH=50% ><TR><TD>wowsa!</TD></TR></TABLE>

When the browser encounters a long text passage in a table's cell, what does it do?
[   ] enlarges the cell as wide as it needs to be, allowing the table to extend off the right of the screen
[   ] word-wraps the text, but only if the table width has been specified in the 'WIDTH' attribute
[ X ] enlarges the cell to the maximum allowed width, and then word-wraps the remaining text, making the cell taller
[   ] writes the portion of text that will fit in the specified width, and truncates the rest

TRUE or FALSE: You may specify height or width of an individual cell, but NOT both.
[   ] True
[ X ] False

Which of the following is NOT a valid HTML tag for specifying a cell size?
[   ] <TH HEIGHT=50>
[   ] <TD WIDTH=50>
[   ] <TD HEIGHT=50 WIDTH=100>
[ X ] <TD HEIGHT=75%>

TRUE or FALSE: When 'HEIGHT' and 'WIDTH' are specified, and if a cell has a lot of text, the browser still has to stay within the specified cell dimensions
[   ] True
[ X ] False

When sizing a table's cells, the minimum requirement for specifying all cells is:
[   ] specify 'HEIGHT' and 'WIDTH' for every cell
[ X ] specify 'HEIGHT' for one cell in each row, and 'WIDTH' for one cell in each column
[   ] Specify 'WIDTH' for all heading cells, and 'HEIGHT' for all remaining cells
[   ] specify 'HEIGHT' and 'WIDTH' in the '<TABLE>' tag.

TRUE or FALSE: By default, the browser assigns each cell to one column and one row.
[ X ] True
[   ] False

Which of the following HTML fragments does NOT correctly implement spanning in a table?
[   ] <TH ROWSPAN=2>
[   ] <TD COLSPAN=2 ROWSPAN=3>
[   ] <TD WIDTH=20 COLSPAN=3>
[ X ] <TR ROWSPAN=2>

True or False: When specified for a table cell, the 'NOWRAP' attribute requires no '=' sign and no value
[ X ] True
[   ] False

Which of the following causes the browser to permit long text passages in a cell to run off the right side of the screen?
[   ] <TD NOWRAP="TRUE">
[   ] <TD WRAP="FALSE">
[ X ] <TD NOWRAP>
[   ] <TD NOWRAP=1>

Which of the following HTML code fragments does NOT cause the browser to paint empty space in the table?
[ X ] <TABLE> <TR> <TD>stuff</TD> </TR> <TR> <TD>&nbsp;</TD> </TR> </TABLE>
[   ] <TABLE> <TR> <TD>stuff</TD> </TR> <TR> </TR> </TABLE>
[   ] <TABLE> <TR> <TD>stuff</TD> </TR> <TR> <TD></TD> </TR> </TABLE>
[   ] <TABLE> <TR> <TD>stuff</TD> </TR> <TR> <TD>      </TD> </TR> </TABLE>

TRUE or FALSE: Empty table space caused by an empty cell can be explicitly sized using the 'HEIGHT' and 'WIDTH' attributes.
[ X ] True
[   ] False

Which of the following HTML code fragments, when embedded in a table, implements a blank cell (with cell borders)?
[   ] <TD></TD>
[   ] <TD>      </TD>
[ X ] <TD>&nbsp;</TD>
[   ] <TD BLANK></TD>

Which of the following HTML code fragments CORRECTLY implements background color for a table?
[   ] <TABLE COLOR="LIME"> <TR> <TD>stuff</TD> </TR> </TABLE>
[ X ] <TABLE BGCOLOR="#80FF80"> <TR> <TD>stuff</TD> </TR> </TABLE>
[   ] <TABLE> <BGCOLOR="LIME"> <TR> <TD>stuff</TD> </TR> </TABLE>
[   ] <TABLE > <TR> <TD COLOR="LIME">stuff</TD> </TR> </TABLE>

TRUE or FALSE: Some browsers which support tables do NOT support the 'BORDERCOLOR', 'BORDERCOLORLIGHT', and 'BORDERCOLORDARK' attributes.
[ X ] True
[   ] False


-PREVIOUS- -CHAPTER- -INDEX- -NEXT-

Overseer: Monty Northrup ... maddog@io.com ... leave e-mail ...
...to maddog 'n' miracles homepage...