|
Lesson 10 - Tables continued... If you just type <table>, then by default the table will have no border. If you want to make your table stand out you can add a border by typing <table border="1">. This will make a thin border appear around your table, as you can see below:
To change the colour of the border, you use a similar code to changing background colour. Simply type <table border="1" bordercolor="red"> to make a table with a thin red border. You can either use hexadecimal codes or type in the names of common colours. It will look something like this:
Changing the colour of the table
If you want to change the colour of just one row or cell, you type bgcolor="CCCCFF" inside the start td or tr tag, like so: <tr bgcolor="CCCCFF"> <td bgcolor="CCCCFF"> Now you can change the appearance of your table to look exactly as you want it.
ADVERTISEMENT |
![]() |
Login to Neopets! | ||
|
|||


