Help:Wiki University Wikitext--Tables - Column headings

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.
 * 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

 Exercises
 * With our above table place a orange border, "outset" style and 25 pixels thick.
 * Made the table 85% in width.
 * Next place a border around the cells in the first column.
 * Make all the columns the same width.
 * Install our Healthy Foods caption;
 * Font - Curtz MT
 * Font - 28pt
 * Center caption
 * 20 pixel space between caption and top of table

Check your answers >

 Quick Quiz
 * The order of attributes is critical.
 * A. True
 * B. False


 * The caption can only be on the left side of the page
 * A. True
 * B. False


 * Only margin-bottom of the caption will cause the separation between the caption and the table
 * A. True
 * B. False

Check your answers >