In this installment, we'll cover tables. First I'll include three examples, then I'll describe how they were done.
| Year/Quarter | 1st | 2nd | 3rd | 4th |
| 1997 | 1024 | 1204 | 1804 | 2084 |
| 1996 | 670 | 676 | 789 | 900 |
| 1995 | 49 | 50 | 200 | 456 |
![]() |
![]() |
![]() |
![]() |
Yugo Jokes
|
The DHMO MenaceThe Invisible KillerDihydrogen monoxide is colorless, odorless, tasteless, and kills uncounted thousands of people every year. Most of these deaths are caused by accidental inhalation of DHMO, but the dangers of dihydrogen monoxide do not end there. Prolonged exposure to its solid form causes severe tissue damage. Symptoms of DHMO ingestion can include excessive sweating and urination, and possibly a bloated feeling, nausea, vomiting and body electrolyte imbalance. For those who have become dependent, DHMO withdrawal means certain death.
Dihydrogen monoxide:
Contamination Is Reaching Epidemic Proportions!Quantities of dihydrogen monoxide have been found in almost every stream, lake, and reservoir in America today. But the pollution is global, and the contaminant has even been found in Antarctic ice. DHMO has caused millions of dollars of property damage in the midwest, and recently California. Huge dhmo formations in the sky block much solar energy from the earth. These formations even occur in rual areas!Despite the danger, dihydrogen monoxide is often used:
Companies dump waste DHMO into rivers and the ocean, and nothing can be done to stop them because this practice is still legal. The impact on wildlife is extreme, and we cannot afford to ignore it any longer!
The Horror Must Be Stopped!The American government has refused to ban the production, distribution, or use of this damaging chemical due to its "importance to the economic health of this nation." In fact, the navy and other military organizations are conducting experiments with DHMO, and designing multi-billion dollar devices to control and utilize it during warfare situations. Hundreds of military research facilities receive tons of it through a highly sophisticated underground distribution network. Many store large quantities for later use.
It's Not Too Late!Act NOW to prevent further contamination. Find out more about this dangerous chemical. What you don't know can hurt you and others throughout the world. Send email to no_dhmo@circus.com. Original author: Coalition to Ban DHMO, 211 Pearl St., Santa Cruz CA, 95060 |
A table is created with the <table> and </table> tags. A row within a table is created with the <tr> and >/tr> tags. A column within a row is created with the <td> and </td> tags.
Here is the code that produced the first table example, the boring quarterly table:
<table border=1> <caption>Quarterly Growth</caption> <tr> <td>Year/Quarter</td> <td>1st</td> <td>2nd</td> <td>3rd</td> <td>4th</td> </tr> <tr> <td>1997</td> <td>1024</td> <td>1204</td> <td>1804</td> <td>2084</td> </tr> <tr> <td>1996</td> <td>670</td> <td>676</td> <td>789</td> <td>900</td> </tr> <tr> <td>1995</td> <td>49</td> <td>50</td> <td>200</td> <td>456</td> </tr> </table>
The "border" attribute inside the <table> tag is used to specify a border with a width of one pixel. The <caption> and </caption> tags bracket a caption for the table.
Here's the source:
<table border=1> <tr> <td><a href="http://altavista.digital.com/"><img src="altavista.gif" alt="Altavista"></a></td> <td><a href="http://www.yahoo.com/"><img src="yahoo.gif" alt="Yahoo"></a></td> </tr> <tr> <td><a href="http://www.dejanews.com/"><img src="dejanews.gif" alt="Dejanews"></a></td> <td><a href="http://www.excite.com/"><img src="excite.gif" alt="Excite"></a></td> </tr> </table>
Notice that I used a border width of one pixel to frame the buttons. Some arrangements will look better with no border.
To split text into two columns using tables, set up a table with one row, and two element in that row. Put the first column of text into the first element (<td> and <td>), and the second column of text into the second element.
You'll often see one column of text with a different background color. This is done by specifying the color for the cell ( the entire column in this case) with the "bgcolor" attribute for the <td> tag. From the Yugo column of the Yugo and DHMO example:
<td valign="top" bgcolor="#d0d0d0">
Here's where I would include the entire section of code that produced the Yugo and DHMO example. I'm afraid that it's so big that it might be a bit overwhelming. I'll put it on its own page and provide a link to it instead.
Next time I might cover frames. I'm not sure, since IMHO, they are rarely useful in any practical way. Any votes yeah or neah?