The rules attribute on <table> chose which internal borders (rules) to draw between cells or groups. Values: none (default), groups, rows, cols, and all.
MDN lists rules as deprecated. Authors must not use it. Style borders with CSS on the table and cells instead — often with border-collapse: collapse. Related legacy attributes: frame (outer sides) and border.
Deprecated / obsolete.
Do not ship rules on new pages. Recognize it in old markup, then replace with CSS border rules.
groups drew lines between thead / tbody / tfoot (and col groups).
Border on thead separates the header from body data.
No per-cell grid unless you add more CSS.
Clearer than relying on obsolete rules.
Edge Cases & Pitfalls
Most issues are using rules in new HTML or confusing it with frame / border.
deprecated
Validators flag rules
Remove it when you touch legacy tables; restyle with CSS.
frame
rules ≠ frame
Internal lines vs outer sides — both deprecated; both → CSS.
border
HTML border on table is also legacy
Prefer the CSS border property on the elements you need.
ua
Rendering was never identical everywhere
Another reason CSS is the reliable path for borders.
Compatibility
Browser Support
rules is a deprecated HTML attribute on <table>. Do not use it in new projects.
✓ Deprecated — use CSS
rules
Legacy recognition varies. Style tables with CSS borders for consistent results.
N/AAuthoring status
Google ChromeLegacy*
Prefer CSS
Mozilla FirefoxLegacy*
Prefer CSS
Apple SafariLegacy*
Prefer CSS
Microsoft EdgeLegacy*
Prefer CSS
OperaLegacy*
Prefer CSS
Samsung InternetLegacy*
Prefer CSS
Internet ExplorerYes
Legacy support
rulesDeprecated
Bottom line: *May still parse for old pages. New tables: CSS only — never add rules.
Remember
Key Takeaways
Was: internal table border modes on <table>.
Values:none, groups, rows, cols, all.
Now: CSS border + border-collapse.
Related legacy:frame, HTML border — also CSS now.
One line:rules was for internal table lines — deprecated; use CSS borders.
Frequently Asked Questions
On table, rules chose which internal borders (rules) to draw: none, groups, rows, cols, or all. Default was none.
No. MDN lists it as deprecated. Style table borders with CSS (border, border-collapse) instead.
Use border-collapse: collapse and set border on th/td (and optionally on the table).
rules controlled internal lines between cells or groups. frame controlled which sides of the outer table frame were shown. Both are deprecated — use CSS.
Draw lines between row groups (thead, tbody, tfoot) and column groups (colgroup), not between every cell.
Support is uneven and not something to rely on. New pages should use CSS only.