WebHints: Tables

Tables have a reputation for being difficult, but they're not. They're easy. Here's one now:

Emu789
Kangaroo5
Sloth42
Wombat5

The HTML for it is:

<TABLE>
<TR><TD>Emu<TD>789</TR>
<TR><TD>Kangaroo<TD>5</TR>
<TR><TD>Sloth<TD>42</TR>
<TR><TD>Wombat<TD>5</TR>
</TABLE>

Table constructs have lots of extra features for aligning and so on. The most useful of these is the ALIGN attribute which can be added to any TD tag to specify the alignment of the table element within its cell:

<TD ALIGN="left">
<TD ALIGN="center">
<TD ALIGN="right">

Another useful one is the BORDER attribute which can be added to the TABLE tag to add borderlines to the table. You can also specify a value to indicate how thick the border should be on the outside.

<TABLE BORDER>
<TABLE BORDER="10">
<TABLE BORDER="20">

The table construct also provides other attributes and options not described here.


* * Webmaster: ross@ross.net
Linkhere: Click here to find out how to link here.
Copyright: Copyright © Ross N. Williams 1995-1996. All rights reserved.