Easy Tutorial
❮ Prop Iframe Align Event Ondrag ❯

Table rules Attribute


Definition and Usage

The rules attribute sets or returns the internal borders of a table.

Syntax

Setting the rules attribute:

Returning the rules attribute:

Value Description
none No internal borders
groups Displays internal borders between row groups and column groups
rows Displays borders between internal rows
cols Displays borders between internal columns
all Displays internal borders between rows and columns

Browser Support

All major browsers support the rules attribute.

Note: IE9 can correctly display this attribute. Earlier versions of IE, in addition to the four internal borders, also add four external borders.

Note: Chrome and Safari can correctly display this attribute: In addition to the internal borders, it also affects the external borders.


Example

The following example sets two different internal borders for the table:

❮ Prop Iframe Align Event Ondrag ❯