Help:Wiki University HTML-- Tables - Columns Only

Table with columns only
An easy way to show a long list of items such as counties in a state is to use a table with a single row. In this row have the number of cells to equal the number of columns you think you need to display the items you want to show. If you have a list of 100 items, you can create a table with one row with four cells in that row. Then you can place 25 items in each cell. This will create four columns with 25 items in each. This is a list of the counties in New Hampshire. The list of counties is in three cells in one row table to create a three column list: Here is the coding: 
 * NOTICE that there is only one row (|-).
 * NOTICE there are three cells (|) in this row.


 * If we wanted the width of the columns to be the same or the width of the table to go across the page, we would insert our width attributes and whatever other attributes we think would make it nicer looking.

Try these out


 Exercises Adair Andrew Atchison Audrain Barry Barton Bates Benton Bollinger Boone Buchanan Butler Caldwell Callaway Camden Cape Girardeau Carroll Carter Cass Cedar
 * Take this list of counties and make a five column list using just one ROW tag |- in a table.
 * Make all the columns of equal width
 * Alternate the colors of the columns with lightblue and lightgray.
 * Use padding of 5px.
 * Place a black line between the columns.

Check your answers

 Quick Quiz
 * To have a list of items in six columns you need to create a table with one row and six cells.
 * A. True
 * B. False


 * A one row table looks better if the columns are of equal length.
 * A. True
 * B. False


 * To make the items on separate lines, you use  tags.
 * A. True
 * B. False

Check your answers