Back

HTML For Math in WebTycho - Tables

by Theresa L. Ford on 10-07-2004

I'm only going to give you a simple template.

If you want understanding, visit a web tutorial on how to do tables.

ANY paragraphs from the other tutorial could be put in the table cells,
though the paragraph (P) codes are not necessary.

You can add as many rows as you want.

This is the table we're building:
cell at first column, first row cell at second column, first row
cell at first column, second row cell at second column, second row
The table begins with:

<TABLE BORDER="1" CELLPADDING="4" CELLSPACING="1" SUMMARY="PRETTY LAYOUT">

and ends with:

</TABLE>
Each row looks like this:

<TR VALIGN="TOP" NOWRAP><TD ALIGN="LEFT" BGCOLOR="silver">
text in cell of first column
</TD><TD ALIGN="LEFT" BGCOLOR="#ffffcc">
text in cell of second column
</TD></TR>

Therefore, the whole table code for:
cell at first column, first row cell at second column, first row
cell at first column, second row cell at second column, second row
is:

<TABLE BORDER="1" CELLPADDING="4" CELLSPACING="1" SUMMARY="PRETTY LAYOUT">

<TR VALIGN="TOP" NOWRAP><TD ALIGN="LEFT" BGCOLOR="silver">
cell at first column, first row
</TD><TD ALIGN="LEFT" BGCOLOR="#ffffcc">
cell at second column, first row
</TD></TR>

<TR VALIGN="TOP" NOWRAP><TD ALIGN="LEFT" BGCOLOR="silver">
cell at first column, second row
</TD><TD ALIGN="LEFT" BGCOLOR="#ffffcc">
cell at second column, second row
</TD></TR>

</TABLE>

Copy and paste the code and change the cell text and 
the bgcolor (background color). Add rows.


<P><PRE>
<I>Put it all together into a neat conference.</I>

<B>Exercise #1. What is the formula for slope (m).</B>


<TABLE BORDER="1" CELLPADDING="4" CELLSPACING="1" SUMMARY="PRETTY LAYOUT">

<TR VALIGN="TOP" NOWRAP><TD ALIGN="LEFT" BGCOLOR="silver">

Slope m =

</TD><TD ALIGN="LEFT" BGCOLOR="#ffffcc">

<PRE><FONT COLOR="fuchsia">
 y<SUB>2</SUB> - y<SUB>1</SUB>
--------
 x<SUB>2</SUB> - x<SUB>1</SUB>

</FONT></PRE>

</TD></TR>
</TABLE>

</PRE>

This looks like:

Put it all together into a neat conference.

Exercise #1. What is the formula for slope (m).
Slope m =

 y2 - y1

--------
 x2 - x1

References:

Back