Atributo de tradução de HTML


Exemplo

Especifique que alguns elementos não devem ser traduzidos:

<p translate="no">Don't translate this!</p>
<p>This can be translated to any language.</p>


Definição e uso

O translateatributo especifica se o conteúdo de um elemento deve ser traduzido ou não.

Teste: Clique na imagem do Google tradutor (ao lado do botão de busca no topo da página) para mudar para outro idioma, e veja o que acontece com a palavra "sorvete" abaixo:

Aqui usamos translate="no":ice cream.


Suporte ao navegador

Attribute
translate Not supported Not supported Not supported Not supported Not supported

Sintaxe

<element translate="yes|no">

Valores de atributo

Value Description
yes Specifies that the content of the element should be translated
no Specifies that the content of the element must not be translated

Páginas relacionadas

Tutorial HTML: Atributos HTML