|
||||||
Sorry for the delay in this months article but I was busy with exams. Now that summer is upon us I have no excuse to be late with any more articles so I better get cracking.
As I said last month, this month I will be concentrating on the practical uses of tables. This is the first part in a two part article. Hopefully you will return on 1st of July when the second part will be published. It might seem at first that the table is pretty much useless unless you want to present tabular information but this is not true. Of course the table can be used to present tabular data, but it is also great as a layout tool. This page is in fact laid out using a table or tables. Presenting tabular data on a web page is much harder than doing it in a word processor but far easier than writing Javascript, for example. In the fist row you place the heading for the columns, making sure to leave one cell blank at the start. Then in the first cell of each row you place the heading you want for that row. For example imagine that you want to create a table comparing two CDs. You want a column of the songs on one CD, a column of the songs on the other CD, and a column stating which one you prefer. [Note that this is not the best way to compare CDs it is just an example of a table] Also as I said earlier you will have to leave one cell blank at the start. <table border=1> I'm sure you get the idea. Let's try another one. Imagine you have a number of products, some are from Africa, some are from India and some are American. You want a table which will tell you where each product is from and will also be able to read, so as you could see at a glance how many products are from India, for example. We could design a simple table with two columns, one with product number and one with the products country of origin. For a large amount of products however this would make it very difficult to check how many products were from America, India or Africa alone.
The copyright of the article Practical Uses for Tables - Part I in HTML Lessons is owned by . Permission to republish Practical Uses for Tables - Part I in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||