HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML translate Attribute

HTML Global Attributes HTML Global Attributes

Example

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

Internet Explorer Firefox Opera Google Chrome Safari

The translate attribute is not properly supported in any of the major browsers.


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.


Differences Between HTML 4.01 and HTML5

The translate attribute is new in HTML5.


Syntax

<element translate="yes|no">

Attribute Values

Value Description
yes Specifies that the content of the element should be translated
no Specifies that the content of the element should not be translated


HTML Global Attributes HTML Global Attributes

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE