---
title: UnclosedHTMLElement
description: Identifies instances of unclosed HTML elements in branching code.
source_url:
html: >-
https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element
md: >-
https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md
---
ExpandOn this page
* [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#examples)
* [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#options)
* [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#disabling-this-check)
# UnclosedHTMLElement
***
## 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.
***
* [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#examples)
* [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#options)
* [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element.md#disabling-this-check)