HTML translate Attribute
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>
Definition and Usage
The translate
attribute specifies whether the content of an element should be translated or not.
Test: Choose "Translate" in the browser menu to translate the page to another language, and look what happens to the word "ice cream" below (will not be translated):
Here we use translate="no": ice cream.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
translate | 19 | 79 | 111 | 6 | 15 |
Syntax
<element translate="yes|no">
Attribute Values
Value | Description |
---|---|
yes | Default. Specifies that the content of the element should be translated |
no | Specifies that the content of the element must not be translated |
Related Pages
HTML Tutorial: HTML Attributes