We have the word Welcome displayed in a yellow bordered table.
Now let's give that word some room between it and the border by using cell padding.
The Cell Padding value is set to 20 so you can see the difference.
Use common sense when setting this value. To large a number may not look good.
How was this done?
Below is the source code. The explanation of each tag will be written in green.
This is the center tag. It centers the table on your page.
We open the Table then set the Border width to 20 by using the border= command.
Next we use the bordercolor= command to set the color to yellow.
And finally we use the cellpadding= command to set the padding to a value of 20.
This is the tag used to open the Table Row.
This opens the Table Data tag. This is used to hold the information you want to display in your table.
Welcome!
This is the info we are displaying. We have to add the font size and color for it to display properly. Remember to close your Font tag when you are done.
|
Now we close the Table Data tag with this tag.
Then we close the Table Row tag with this one.
We are done with the table so we close it with this tag.
Finally we close the Centering tag with this tag.