HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Background Picture
Basic Table
Cell Padding
Cell Spacing
Colspan Rowspan
Table Alignment
Table Border
Table Colors
Table Shadow
Width and Height
Table Border
270
Table Border
Description
The tag to add a border to a table is BORDER="X". X is replaced with the size of the border you want, ranging from 0 to 1000. This line, BORDER="X", adds onto the <TABLE> tag, so the end result would look like this.
<TABLE BORDER="X">.
Code
<TABLE BORDER="5">
<TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR>
<TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR>
</TABLE>
Output
Cell 1
Cell 2
Cell 3
Cell 4
Practice
<TABLE BORDER="5"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
Advertisements