HTML Table rules attribute


The following example specifies that only the borders between the rows should be visible:
<table rules="rows">

Definition and Usage

The rules attribute specifies which parts of the inside borders that should be visible.
For practical reasons, it may be better to not specify any rules, and use CSS instead.

Browser Support

The rules attribute is properly displayed in Firefox and Opera.
Internet Explorer, Chrome, and Safari 3 displays this attribute incorrectly.
  • IE: Adds the four outside borders in addition to the inside borders
  • Chrome and Safari: Adds the affected outside borders in addition to the inside borders
Note: This attribute is not supported in Safari 2.0 or earlier versions.


<table rules="value">

Attribute Values

Value Description
none No lines
groups Lines between row groups and column groups
rows Lines between rows
cols Lines between columns
all Lines between rows and columns
HTML Table rules attribute Reviewed by 1000sourcecodes on 02:25 Rating: 5
Powered by Blogger.