Help:Wiki University Wikitext--Tables - Cells

Table column headers
|- !  !  !  !  |-  ! Fruits ! Vegetables ! Nuts ! Grains
 * We have a title for our table, but do the columns represent?
 * To label the columns we use explanation marks: !
 * Unlike the caption, we have to have a row tag before the explanation marks like so:
 * Here is the column headers for our healthy foods table
 * NOTICE there are no borders on column headers.
 * NOTICE the headers are defaulted to the left of the header cell.
 * NOTICE the font is bold.

Changing column headers
Here is what the table will look like with borders and centered text. Here is the coding:
 * To put a border on the header cells, we will use our border attribute
 * If you want to center the headers, we will use our text-align attribute
 * NOTICE the width attribute was moved into the header tags just so we will know where they are. They could have stay where they were or with any other cells in the columns.

 Exercises
 * With our above table place a yellow border, "dashed" style and 10 pixels thick.
 * Made the table 500 pixels wide.
 * Next place a blue border around the headers.
 * Install our Healthy Foods caption with any font;
 * Install the headers for each of the columns.

Check your answers >

 Quick Quiz
 * The headers are always centered on the column.
 * A. True
 * B. False


 * You have to use the text-align to put the header on the left side
 * A. True
 * B. False


 * Headers are never in bold type.
 * A. True
 * B. False

Check your answers >