Help:Wiki University Wikitext--Tables - Borders

Table Borders
Now that we have a table created, we need to add some borders so it will look more like a table.

Add border attribute in opening table tag
{| style="border:1px solid red" Here is the table with the border added
 * To add a border to a table add the border attribute to the opening table tag like so:
 * Notice the space between the pipe and the word style
 * Notice there is no closing tag for this attribute
 * Notice the |- row tag acts like a separator between the attribute in the opening table tag and the next cell


 * Notice the width of the table is determined by the text in the cells. It does not necessarily goes across the page.

Table widths
 Exercises Check your answers >
 * Create a table with three rows and four cells in each row. Put in the cells, you favorite color in the first column, your favorite authors in the second column, your favorite foods in the third column and your favorite drinks in the last column.  (Be careful we are talking about columns not rows.  This exercise will teach you how to arrange items in columns.)

 Quick Quiz
 * Tables do not need a closing tag
 * A. True
 * B. False


 * Rows must have a closing tag
 * A. True
 * b. False


 * Cells must have something in them for the table to be visible.
 * A. True
 * B. False

Check your answers >