|
Homework - Ch. 5 Review Questions REPUBLIC OF NICARAGUA
|
|
Chapter 5 of Principles of Web Design Review Questions and Solutions (Page 156-157) 1. Name three print-based design structures that Web designers can duplicate with tables. Grid-based layouts, gutters, columns 2. What are the three basic table elements? <TABLE> <TR> <TD> 3. What table element presents its content as bold and centered? <TH> the table header element 4. What attribute can you use with the <CAPTION> element? ALIGN 5. What are the three levels of table structure? Global, row-level, cell-level 6. What attribute would you use to adjust spacing between table cells? CELLSPACING 7. What attribute would you use to adjust spacing within table cells? CELLPADDING 8. In the following code, which attribute takes precedence and why? [BEGIN CODE] <TR VALIGN=TOP><TD VALIGN=MIDDLE>Cell 1</TD><TD>Cell 2</TD></TR> [END CODE] VALIGN=MIDDLE because the element or attribute closest to the content takes precedence 9. Which attribute lets you color the background of a cell? BGCOLOR 10. What value should COLSPAN equal in the following code? [BEGIN CODE] <TR><TD>R1C1</TD><TD> R1C2</TD><TD> R1C3</TD></TR> <TR><TD>R2C1<TD COLSPAN= >R2C2</TD></TR> [END CODE] COLPSAN=2 11. Write the beginning table tag for a table that fills 75% of the browser window. <TABLE WIDTH=75%> 12. What is the major disadvantage of relative width tables? The design is not fixed, but depends on the browser. The designer can’t be sure that the finished page will look exactly as intended. 13. Write the code to remove the default spacing from a table. <TABLE BORDER=0. CELLPADDING=0, CELLSPACING=0> 14. Why would you want to remove the default spacing from a table? To join the contents of adjacent cells 15. How do extra character spaces affect a table? Extra white space appears within the table 16. What is the best way to center a table? Use the <DIV> element with the ALIGN=CENTER attribute. 17. What are the benefits of stacking tables? Tables display in the order they appear in the code, so the first table will appear while the second is downloading Also, it can be easier to build complex tables by breaking them down into simpler components. 18. What are two rules for setting column widths in a table? Set the widths in only one row of the table. Choose a row that contains one cell for every column in the table. 19. What attribute lets you align content to the top of a cell? VALIGN 20. What is the difference between removing the BORDER attribute and setting BORDER=0? Removing the BORDER attribute turns the border off. Setting Border=0 removes the default border spacing entirely.
|
|
|