2. "Height" is not an attribute for a table or table cell. You add both width and height attributes when inserting an image, but not a table. Several html editing programs will add height, but that will not get approved by the html 4.0 validation service. Using the "height" attribute can pose other problems, especially if specified in pixels. A table with a specified height of "450 pixels", for example, may look fine on your computer, but when it is displayed on someone else's monitor it may introduce surprising and unwanted space into your table. 3. The problem here is that an attribute value must be literal, in this case stated in pixels, unless it is enclosed in quotation marks. What that means is:
4. Heh, heh. This is a trick question. You can use both <br> and <p> inside a table. However, these must be inside a <td> cell </td> tag. It is often good to add a <br> at the end of each row of a table to improve its readability on text-only or pre-3.0 browsers. But to do that you must put the <br> inside a cell, not at the end of the row. 5.Some designers feel it is usually better to use percentage rather than pixel to define cell width, being careful to use the quotation marks so that <td width="xx%">. This is so that the width will resize to fit your viewer's monitor. In some cases you may want to have one cell be a width fixed in pixels, but then be sure that at least one other cell is set in percentage so that there is some flexibility in your page. |
|
|||||
Copyright by dwang, 1999. All rights reserved.