Easy Tutorial
❮ Att Script Defer Tag Title ❯

HTML <table> rules Attribute

HTML <table> Tag

Example

Display borders only between rows:


Browser Support

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

Note: Internet Explorer 8 and earlier versions do not support the rules attribute of the <table> tag.

Note: Chrome and Safari do not display this attribute correctly: they also add outer borders in addition to inner borders.


Definition and Usage

The rules attribute specifies which inner borders are visible.

For practical purposes, it is better not to specify rules and instead use CSS to add borders (border styles).


Syntax

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.

❮ Att Script Defer Tag Title ❯