HTML translate Attribute

Definition and Usage

translate Whether the content of the element should be translated.

Test: Please click the Google Translate icon (next to the search button at the top of the page), switch to another language, and see what happens to the "ice cream" below:

Here, we use translate="no": ice cream.

See also:

HTML Tutorial:HTML attributes

Example

Specify that certain elements should not be translated:

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

Syntax

<element translate="yes|no">

Attribute Value

Value Description
yes Specify that the content of elements should be translated.
no Specify that the content of elements should not be translated.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Not Supported Not Supported Not Supported Not Supported Not Supported