Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

HTML translate Attribute

Definition and Usage

The translate attribute specifies whether the content of an element should be translated or not.

Test: Use the Google translate box (at the top of the page) to change to another language, and look what happens to the word "ice cream" below:

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

Here we use class="notranslate": ice cream.

Tip: Use class="notranslate" instead.

Applies to

The translate attribute is part of the Global Attributes, and can be used on any HTML element.

Element Attribute
All HTML elements translate


Specify that some elements should not be translated:

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

Browser Support

translate Not supported Not supported Not supported Not supported Not supported