---
title: LiquidHTMLSyntaxError
description: Identifies Liquid syntax errors.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/liquid-html-syntax-error
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/liquid-html-syntax-error.md
api_name: liquid
---

# Liquid​HTMLSyntax​Error

Identifies LiquidHTML syntax errors.

**Note:**

For Liquid tag and output syntax errors, see [`LiquidSyntaxError`](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/liquid-syntax-error).

***

## Examples

The following examples contain code snippets that either fail or pass this check.

### ✗ Fail

The example below is missing a closing bracket `%}`.

```liquid
<a>unclosed
{% include 'muffin'
{% assign foo = 1 }}
{% unknown %}
{% if collection | size > 0 %}
```

### ✓ Pass

```liquid
<a>closed</a>
<Partial filePath="muffin" />
{% assign foo  = 1 %}
{% if collection.size > 0 %}{% endif %}
```

***

## Disabling this check

Disabling this check isn't recommended.

***

## Aliases

For backward compatibility with configuration files made for Theme Check `v1.X.X`, this check is also recognized in configuration files with the following names:

* `HtmlParsingError`
* `SyntaxError`

***
