Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML table rules attribute

HTML

HTML table Tag Reference HTML

The rules attribute
tag

Example

Display only the borders between rows:

Month Savings
January $100

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the rules attribute.

**Note:** Internet Explorer 8 and earlier versions do not support

**Note:** Chrome and Safari do not display this attribute correctly: in addition to the inner borders, an affected outer border is also added.


Definition and Usage

HTML5 does not support

The rules attribute of the tag.

The rules attribute specifies which parts of the inner borders are visible.

From a practical standpoint, it is best not to specify rules, but to use CSS to add borders (border styles).


Syntax

the rules attribute. Please use CSS instead.
HTML

tag