asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > RULES Attribute

RULES Attribute | rules Property


Sets or retrieves which dividing lines ( inner borders ) are displayed.

Syntax

Inline <TABLE RULES = 'all' | 'cols' | 'groups' | 'none' | 'rows'...>
Script table.rules = sRule ]

Possible Values

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.

Remarks

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.

Example

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 

Applies To

TABLE

See Also

frame



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note