HTML translate egenskab
- Previous page title
- Next page accesskey
- Go back one level HTML Global Attributes
Definition og brug
translate
Bestemme om indholdet af elementet skal oversættes.
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 properties
Example
It is specified 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 | It is specified that the content of elements should be translated. |
no | It is specified 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 |
- Previous page title
- Next page accesskey
- Go back one level HTML Global Attributes