Previous Slide


Table Cell Alignment

Next Slide

  • THE "ALIGN" ATTRIBUTE SPECIFIES AN ALIGNMENT OF "LEFT", "CENTER" OR "RIGHT" FOR A TABLE CELL.

  • THE "VALIGN" ATTRIBUTE SPECIFIES AN ALIGNMENT OF "TOP", "CENTER" OR "BOTTOM" FOR A TABLE CELL.

  • THEY CAN BE USED WITH <TD>, <TH>, AND <TR> TAGS.

< TABLE BORDER=3 > 
< TR VALIGN=BOTTOM >
    < TH > TAG < /TH >
    < TH > TAG < BR >TYPE < /TH >
< TR ALIGN=RIGHT >
    < TD > H1 < /TD >
    < TD ROWSPAN=2 > BLOCK < /TD >
< TR >     < TD > P < /TD >
 < /TABLE >

image
TAG 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