Identifies instances of unclosed HTML elements in branching code, ensuring they are opened/closed in the same parent element, condition, and stack order.
## Examples
The following examples contain code snippets that either fail or pass this check.
### ✗ Fail
```liquid
{% if cond %}
{% endif %}
{% if cond %}
{% endif %}
{% if something %}
{% endif %}
{% if something_else %}
{% endif %}
{% if cond %}
{% endif %}
{% if cond %}
{% endif %}
```
### ✓ Pass
```liquid
{% if something %}
{% endif %}
{% if something %}
{% endif %}
{% if cond %}
{% endif %}
{% if cond %}
{% endif %}
{% if cond %}
{% else %}
{% endif %}
{% unless cond %}
{% endunless %}
```
## Options
```yaml
UnclosedHTMLElement:
enabled: true
severity: warning
```
| Parameter | Description |
| --- | --- |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/themes/tools/theme-check/configuration#check-severity) of the check. |
## Disabling this check
Disabling this check isn't recommended.