Previous Slide


Table Width and Height Attributes

Next Slide

  • THE "WIDTH" (OR "HEIGHT") ATTRIBUTE CAN BE USED TO SPECIFY THE "SUGGESTED" WIDTH (OR HEIGHT) OF A TABLE OR TABLE CELL.

  • WIDTHS AND HEIGHTS CAN BE SPECIFIED IN PIXELS. WIDTHS CAN ALSO BE GIVEN AS PERCENTAGES.

  • THESE TAGS CAN ALSO LEAD TO ABUSE

<TABLE BORDER=3 HEIGHT=140>
<TR> <TH>TAG</TH>
     <TH WIDTH="50%">TYPE</TH>
<TR> <TD>H1 </TD>
     <TD ROWSPAN=2>BLOCK
<TR> <TD>P </TD>
</TABLE>

image

TAG

TYPE
H1 BLOCK
P



The Web:
Technologies and
Techniques


Links to other course pages:


Williams College
Department of Computer Science
This page is part of a section of lecture slides related to " HTML tables " within the topic "HTML II". Other slides within this section and other sections of slides for the topic "HTML II" can be accessed using the links below.
  • TEXT
  • Text Style Tags
  • Getting Physical...
  • Text That Isn't Text
  • List Tags
  • List Elements
  • Ordered and Unordered Lists
  • Ordered and Unordered Lists (cont.)
  • Definition Lists
  • HTML tables
  • Tables
  • Table Borders and Headers
  • Table Cell Spacing
  • Table Cell Padding
  • Irregular Table Cells
  • Table Cell Alignment
  • Table Width and Height Attributes