| 1 | --- |
| 2 | title: "htmx.config.implicitInheritance" |
| 3 | description: "Enable implicit attribute inheritance" |
| 4 | --- |
| 5 | |
| 6 | The `htmx.config.implicitInheritance` option, when set to `true`, causes child elements to implicitly inherit htmx attributes from parent elements. |
| 7 | |
| 8 | **Default:** `false` |
| 9 | |
| 10 | ## Example |
| 11 | |
| 12 | ```javascript |
| 13 | htmx.config.implicitInheritance = true; |
| 14 | ``` |
| 15 | |
| 16 | ```html |
| 17 | <meta name="htmx-config" content='{"implicitInheritance":true}'> |
| 18 | ``` |
| 19 | |
| 20 | When enabled, attributes like [`hx-target`](/reference/attributes/hx-target) on a parent apply to all child elements unless overridden. |