Questions Chapter 4
- What
are the two kinds of tables you can place in a Web page?
- What
are the advantages and disadvantages of a text table?
- What
are the advantages and disadvantages of a graphical table?
- What
is the difference between a proportional font and a fixed-width font?
- What
type of font should you use in a text table?
- What
tag can you use to create a text table?
- Name
the purpose of the following tags in defining the structure of a table:
<TABLE>
<TR>
<TD>
<TH>
- How do
you determine the number of rows in a graphical table?
- How do
you determine the number of columns in a graphical table?
- How
does the <TH> tag differ from the <TD> tag?
- What
HTML code would you enter to place the caption “Product Catalog” below a
table? Where must this code be placed in relation to the <TABLE> and
</TABLE> tags?
12. What HTML code would you enter to create a table that
has a 5-pixel-wide border with a 3-pixel border between table cells and 4
pixels between the cell text and the surrounding cell border?
13. What HTML code would you enter to align text with the
top of a table header cell?
14. What HTML code would you enter to center all of the text within a given row?
- What
HTML code would you enter to create two 2 x 2 tables, one nested inside
the upper-left cell of the other?
- What
HTML code inserts the comment “Nested table starts here”?
- What
code would you enter to change the border color of your table to yellow?
- What
code would you enter to use red for the light border color and blue for
the dark border color?
- What
code would you enter to display only the top border of your table?
- What
code would you enter to create dividing lines around your table columns
only?
21. What are the two ways of expressing table width? What
are the advantages and disadvantages of each?
22. What HTML code would you enter to create a table that
fills up half the width of the browser’s display area, regardless of the
resolution of the user’s monitor?
23. What HTML code would you enter to set the width of a
cell to 60 pixels? Will this keep the cell from exceeding 60 pixels in width?
Will this keep the cell from being less than 60 pixels wide? How would you
guarantee that the cell width will be exactly 60 pixels?
24. What HTML code would you enter to set the background
color of your table to yellow?
25. What HTML code would you enter to create a cell that
spans three rows and two columns?