Help:Wiki University HTML-- 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

 * To add a border to a table, add the border attribute to the opening table tag like so:
 * NOTICE each cell has the border attribute placed in it. It is a lot of work, but this is the only way it works in the Wiki.
 * NOTICE this coding is not required in row tags.



TRY THESE OUT. . . ..

 Exercises Check your answers
 * With your table from the previous exercise, put a 15 pixel "ridge" border with a border color of "cornsilk."
 * Put a border for the whole table that is 15 pixels wide, "double" border with a border color of brown.
 * Put a blue border around the cells in the first column 1 pixel thick.

 Quick Quiz
 * Borders can only be on the outside of a table.
 * A. True
 * B. False


 * You can put borders around rows
 * A. True
 * B. False


 * You can put borders on columns
 * A. True
 * B. False

Check your answers