Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML translate Attribute

HTML translate Attribute

HTML Global Attributes HTML Global Attributes

Example

Specifying that some elements should not be translated:

This paragraph should not be translated.

This paragraph can be translated


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently no major browser supports the translate attribute.


Definition and Usage

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

Test: use the Google Translate tool to see what the following words "ice cream" become:

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">

HTML Global Attributes HTML Global Attributes