BORDER:
<TABLE>
<TR>
<TD>Column A, Row 1 __</TD>
<TD>Column B, Row 1 __</TD>
<TD>Column C, Row 1 __</TD>
</TR>
<TR>
<TD>Column A, Row 2 __</TD>
<TD>Column B, Row 2 __</TD>
<TD>Column C, Row 2 __</TD>
</TR>
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
BORDER:
<TABLE BORDER>
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
BORDER="6":
<TABLE BORDER="6">
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
BORDER="12" WIDTH="90%":
<TABLE BORDER="12" WIDTH="90%">
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
... CELLSPACING="20":
<TABLE BORDER="9" WIDTH="85%" CELLSPACING="20">
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
With CELLSPACING you may control the amount of space between
cells in a table.
... CELLPADDING="20":
<TABLE BORDER="9" WIDTH="85%" CELLPADDING="20">
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
With CELLPADDING you control the amount of space between
the border of a cell and its contents.
... CELLSPACING="20" CELLPADDING="20":
<TABLE BORDER="9" WIDTH="85%" CELLSPACING="20" CELLPADDING="20">
...
</TABLE>
| Column A, Row 1 __ | Column B, Row 1 __ | Column C, Row 1 __ |
| Column A, Row 2 __ | Column B, Row 2 __ | Column C, Row 2 __ |
<TD ALIGN=...>
<TABLE BORDER WIDTH="60%">
<TR>
<TD ALIGN="LEFT">Cell A1</TD>
<TD ALIGN="CENTER">Cell B1</TD>
<TD ALIGN="RIGHT">Cell C1</TD>
</TR>
<TR>
<TD>Cell A2</TD>
<TD>Cell B2</TD>
<TD>Cell C2</TD>
</TR>
</TABLE>
| Cell A1 | Cell B1 | Cell C1 |
| Cell A2 | Cell B2 | Cell C1 |
With <TD ALIGN=...>
you control data alignment "cell by cell" in a table.
As illustrated with Row 2, LEFT is the default alignment.
<TR ALIGN=...>
<TABLE BORDER WIDTH="60%">
<TR>
<TD>Cell A1</TD>
<TD>Cell B1</TD>
</TR>
<TR ALIGN=CENTER>
...
</TR>
<TR ALIGN=RIGHT>
...
</TR>
</TABLE>
| Cell A1 | Cell B1 |
| Cell A2 | Cell B2 |
| Cell A3 | Cell B3 |
With <TR ALIGN=...>
you control cell data alignment "by Row" in a table.
Row 1 is aligned LEFT by default.
<TABLE ALIGN=...>
you control the alignment of the entire table with respect to the data
immediately following the table on the page.
<TABLE BORDER WIDTH="60%" ALIGN="RIGHT">
<TR>
<TD>Cell A1</TD>
<TD>Cell B1</TD>
</TR>
<TR>
<TD>Cell A2</TD>
<TD>Cell B2</TD>
</TR>
</TABLE>
With <TABLE ALIGN="RIGHT">,
the table will be displayed to the RIGHT of whatever is physically
placed right below it in the document.
| Cell A1 | Cell B1 |
| Cell A2 | Cell B2 |
With <TABLE ALIGN="RIGHT">,
the table will be displayed to the RIGHT of whatever is physically
placed right below it in the document.
<TABLE ALIGN="LEFT"> without a BORDER
<TABLE WIDTH="40%" ALIGN="LEFT">
...
</TABLE>
With <TABLE ALIGN="LEFT">,
the table will be displayed to the LEFT of whatever is physically
placed right below it in the document.
| Cell A1 | Cell B1 |
| Cell A2 | Cell B2 |
With <TABLE ALIGN="LEFT">,
the table will be displayed to the LEFT of whatever is physically
placed right below it in the document.
<TD COLSPAN="2">:
<TABLE BORDER WIDTH="60%">
<TR>
<TD ALIGN="LEFT">First Cell</TD>
<TD ALIGN="CENTER" COLSPAN="2">Second Cell</TD>
<TD ALIGN="RIGHT">Third Cell</TD>
</TR>
<TR>
<TD>Fourth Cell</TD>
<TD>Fifth Cell</TD>
<TD>Sixth Cell</TD>
</TR>
</TABLE>
| First Cell | Second Cell | Third Cell | |
| Fourth Cell | Fifth Cell | Sixth Cell | |
<TD COLSPAN="2"> and <TD ROWSPAN="2">:
<TABLE BORDER WIDTH="60%">
<TR>
<TD ALIGN="LEFT">First Cell</TD>
<TD ALIGN="CENTER" COLSPAN="2">Second Cell</TD>
<TD ALIGN="RIGHT" ROWSPAN="2">Third Cell</TD>
</TR>
<TR>
...
</TR>
</TABLE>
| First Cell | Second Cell | Third Cell | |
| Fourth Cell | Fifth Cell | Sixth Cell | |
HEADER:
<TABLE BORDER WIDTH="80%">
<TR>
<TH>Header Text</TH>
<TD>Cell B1</TD>
<TD>Cell C1</TD>
</TR>
<TR ALIGN="CENTER">
<TD>Cell A2</TD>
<TD>Cell B2</TD>
<TD>Cell C2</TD>
</TR>
</TABLE>
<TH> tags instead of
<TD> tags.
<TR ALIGN="CENTER"> tag.
| Header Text | Cell B1 | Cell C1 |
|---|---|---|
| Cell A2 | Cell B2 | Cell C2 |
CAPTIONed table with a Header spanning two columns and
a pair of row Headers:
<TABLE BORDER WIDTH="70%">
<TR>
<TD> </TD>
<TH COLSPAN="2">Column Header</TH>
</TR>
<TR ALIGN="CENTER">
<TH ALIGN="LEFT"> Row 2 Header</TH>
<TD>Cell B2</TD>
<TD>Cell C2</TD>
</TR>
<TR ALIGN="CENTER">
<TH ALIGN="LEFT"> Row 3 Header</TH>
<TD>Cell B3</TD>
<TD>Cell C3</TD>
</TR>
<CAPTION>Project 6, Lesson 5, Table</CAPTION>
</TABLE>
| Column Header | ||
|---|---|---|
| Row 2 Header | Cell B2 | Cell C2 |
| Row 3 Header | Cell B3 | Cell C3 |
<TH> header tags
and is, therefore, Centered and Bolded.
Tag Headers used "COLSPAN=2" .
<TR ALIGN="CENTER">...</TR> tags,
to center their cells' text, unless it is over-ridden by a cell
"ALIGN=..." setting.
<TH ALIGN="LEFT">...</TH>
tags, hence the text is Left-Aligned and Bold.
</TR> tag, before the </TABLE> tag.
Your instructor, however, will show you how to use MS-Excel to create HTML tables.