HTML translate Attribute

❮ HTML Attributes

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">



Browser Support




Status




Applies to:

The translate attribute can be used on the following element:

Element Attribute
All HTML elements. translate






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
❮ HTML Attributes