# ember/template-table-groups
💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations).
Requires table elements to use table grouping elements.
Tables should use ``, `
`, and `` elements to group related content. This improves accessibility for screen reader users and makes the table structure more semantic.
## Rule Details
This rule requires that `` elements use grouping elements (``, ``, ``) instead of having `` elements as direct children.
## Examples
Examples of **incorrect** code for this rule:
```gjs
```
```gjs
```
Examples of **correct** code for this rule:
```gjs
```
```gjs
```
## Options
| Name | Type | Default | Description |
| ----------------------------- | ---------- | ------- | ---------------------------------------------- |
| `allowed-table-components` | `string[]` | `[]` | Component names treated as `` elements. |
| `allowed-caption-components` | `string[]` | `[]` | Component names treated as ``. |
| `allowed-colgroup-components` | `string[]` | `[]` | Component names treated as ``. |
| `allowed-thead-components` | `string[]` | `[]` | Component names treated as ``. |
| `allowed-tbody-components` | `string[]` | `[]` | Component names treated as ``. |
| `allowed-tfoot-components` | `string[]` | `[]` | Component names treated as ``. |
## References
- [eslint-plugin-ember template-table-groups](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-table-groups.md)
- [MDN - Table structure](https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Advanced)