---
title: ValidHTMLTranslation
description: Identifies invalid HTML inside translations.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md
api_name: liquid
---

# Valid​HTMLTranslation

Identifies invalid HTML inside translations.

***

## Examples

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

### ✗ Fail

```html
{
"hello_html": "<h2>Hello, world</h1>",
"image_html": "<a href='/cat'>Unclosed"
}
```

### ✓ Pass

```html
{
"hello_html": "<h1>Hello, world</h1>",
"image_html": "<img src="cat.png" />",
"line_break_html": "<br />",
"self_closing_svg_html": "<svg />"
}
```

***

## Options

```yaml
ValidHTMLTranslation: 
  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.

***
