English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The global attribute 'translate' is used to specify whether the attribute values of the corresponding elements and the content of their child text nodes should be translated according to the system language.
The translate attribute can have the following two values:
No special settings or "yes". Using these two values indicates that the corresponding content should be translated when the web page is localized.
"no". Using this value indicates that the corresponding content does not require any translation.
Specify some elements that should not be translated:
<p translate="no">This paragraph cannot be translated.</p> <p>This paragraph can be translated</p>
IEFirefoxOperaChromeSafari
Currently, no mainstream browsers support the translate attribute.
The translate attribute specifies whether the element content should be translated.
The translate attribute is a feature of HTML5new features.
<element translate="yes|no">
Value | Description |
---|---|
yes | Specify that the element content needs to be translated |
no | Specify that the element content does not need to be translated |