Attribute of
<table>
What does <table frame=""> do?
The frame attribute was used to define the visible borders of a table. It is now deprecated and should no longer be used.

FRAME sets which outer borders are visible. In the next several pages we'll look at all nine value of FRAME. FRAME and FRAME have an annoying way of changing each others defaults. To simplify your life, here's a rule of thumb: if you use FRAME also use FRAME and BORDER. It's easier to avoid getting confused.

<table frame="above">

ABOVE means that there should only be a border on top of the table.

<table border="10" frame="ABOVE" rules="NONE"> 

Applying the attribute to a table as shown in the code above gives us this odd looking table

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="below">

BELOW means that only the bottom border should appear:

<table border="10" frame="BELOW" rules="NONE"> 

Using it gives us this unaesthetic table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="border">

BORDER means exactly the same thing as FRAME=BOX.

<table frame="box">

FRAME=BOX means there should be borders on all four sides. BOX is usually used in conjunction with RULES=NONE to create a table that has outside borders but no inside borders:

<table border="1" frame="BOX" rules="NONE"> 

Using this attribute-value pair gives us this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="hsides">

FRAME=HSIDES (Horizontal SIDES) means that there should be borders on the top and bottom sides of the table.

<table border="8" frame="HSIDES" rules="NONE"> 

Using the attribute gives us this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="lhs">

FRAME=LHS (Left Hand Side) means that there should only be an outer border on the left hand side of the table.

<table border="8" frame="LHS" rules="NONE"> 

Using the attribute produces this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="rhs">

FRAME=RHS (Right Hand Side *) means that there should only be an outer border on the left hand side of the table.

<table border="8" frame="RHS" rules="NONE"> 

Using the attribute produces this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="void">

FRAME=VOID means that there should be no outer border.

<TABLE BORDER="2" FRAME="VOID" RULES="ALL"> 

Using the attribute produces this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

<table frame="vsides">

FRAME=VSIDES (Vertical SIDES) means that there should be borders on the left and right sides of the table.

<TABLE BORDER="8" FRAME="VSIDES" RULES="NONE"> 

Using the attribute produces this table:

Name Food
Starflower stir fied tofu
Miko vegetable rice soup
Andy hummus
Ping french toast

Values of the frame Attribute

Value Name Notes
hsides The frame attribute was used on the <table> element to control the display of the outside border. The value frame="hsides" indicated that borders should be drawn on the top and bottom of the table. This attribute is deprecated in HTML5 and should no longer be used. To achieve border effects on tables, use CSS.
void
vsides