Advertisement
Home Open Editor ❯

HTML translate Attribute

Example

<p>This can be translated to any language.</p>
<p translate="yes">This can be translated to any language.</p>
<p translate="no">Don't translate this!</p>

Meaning

The translate global attribute is an enumerated attribute that is used to specify whether an element's translateable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged.


Standard Syntax

<element translate="yes|no">


Applies to:

The translate attribute can be used on the following element:

Element Attribute
All HTML elements. translate

Advertisement

Attribute Values

Value Description
Yes Specifies the content of the element should be translated
No Specifies the content of the element must not be translated
Home Open Editor ❯
Advertisement