Home > Abakada: Back to Basics > Language References > HTML Element Attributes > RULES Attribute
Sets or retrieves which dividing lines ( inner borders ) are displayed.
Inline |
<TABLE RULES = 'all' | 'cols' | 'groups' | 'none' | 'rows'...> |
Script |
table.rules = sRule ] |
all |
Displays a border on all rows and columns. |
cols |
Displays borders between all table columns. |
groups |
Displays horizontal borders between all table groups. Groups are specified by the THEAD, TBODY, TFOOT, and COLGROUP objects. |
none |
Removes all interior table borders. |
rows |
Displays horizontal borders between all table rows. |
The property is read/write with no default value.
The value none turns off the interior borders only. All table borders can be turned off by setting the rules property to '' or by not adding the RULES attribute to the TABLE object.
The following example demonstrates the various effects of setting the table RULES attribute. This feature requires Microsoft® Internet Explorer® 4.0 or later.
Show me
TABLE
frame