--- 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 --- ExpandOn this page * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#disabling-this-check) # ValidHTMLTranslation Identifies invalid HTML inside translations. *** ## Examples The following examples contain code snippets that either fail or pass this check. ### ✗ Fail ```html { "hello_html": "

Hello, world

", "image_html": "Unclosed" } ``` ### ✓ Pass ```html { "hello_html": "

Hello, world

", "image_html": "", "line_break_html": "
", "self_closing_svg_html": "" } ``` *** ## 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. *** * [Examples](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#examples) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation.md#disabling-this-check)