English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de Referência HTML

大全 de etiquetas HTML

Atributo translate do HTML

A propriedade global translate é usada para determinar se o valor do atributo correspondente do elemento e o conteúdo do nó de texto filho devem seguir a mudança de tradução do idioma do sistema.

Atributos Globais do HTML

The translate attribute can have the following two values:

  • No special settings or "yes". Using these two values means that the corresponding content should be translated when the web page is localized.

  • "no". Using this value means that the corresponding content does not need any translation.

Online example

Specify some elements that should not be translated:

<p translate="no">This paragraph cannot be translated.</p>
<p>This paragraph can be translated</p>

Browser compatibility

IEFirefoxOperaChromeSafari

Currently, there is no mainstream browser that supports the translate attribute.

Definition and usage

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

HTML 4.01 with HTML5differences

The translate attribute is a HTML5of the new features.

Syntax

<element translate="yes|no">

Attribute value

ValueDescription
yesDefine the content of the element that needs to be translated
noDefine the content of the element that does not need to be translated


Atributos Globais do HTML