no border will be displayed.The larger the value, the thicker will be the border.

Example:<Table Border="3">

Here the number 3 in the border size in pixels.

BORDERCOLOR

The Bordercolor attribute is used to set the colour of a table's border. You can specify the name or the hexadecimal code of the particular colour that you want to use.

Example:<TABLE Border=3 Bordercolor="Blue">Or

<TABLE Border=3 Bordercolor="#FFOOOO">

FRAME AND RULES

These attributes improve the amount of control one can execute over the borders of a table.The Frame attribute indicates which sides of the outside border of the table should be visible, whereas the Rules Attribute specifies which side of the inside border of the table should be visible.

The following table shows the possible values accepted by a Frame attribute:

Frame Value Effect
Frame="Above" Displays the edge
Frame="Below" Displays the bottom edge
Frame="Border" Displays all four edges; this is same as specifying the Border attribute (default)
Frame="Box" Same as Frame="Border"
Frame="Hsides" Displays top and bottom edges (horizontal sides)
Frame="Lhs" Displays the left edge
Frame="Rhs" Displays the right edge
Frame="Viod" Displays no edge or border
Frame="Vsides" Displays the left and right edges (vertical sides)
<HTML>

<HEAD>

<TITLE>Creating table</TITLE></HEAD>

<BODY Topmargin=50 Leftmargin=50 Bgcolor="Lightgreen">

<TABLE Border=5 Bordercolor="Red" Bgcolor="White" Align="Left" Height="50" Width="80" Frame="Box">

<TR Bgcolor="Yellow">

<TH>Box</TH>

</TR>

</TABLE>


page no:126
         
Home