Atributo de traducción HTML


Ejemplo

Especifique que algunos elementos no deben traducirse:

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


Definición y uso

El translateatributo especifica si el contenido de un elemento debe traducirse o no.

Prueba: haga clic en la imagen del traductor de Google (junto al botón de búsqueda en la parte superior de la página) para cambiar a otro idioma, y ​​observe qué sucede con la palabra "helado" a continuación:

Aquí usamos translate="no":ice cream.


Compatibilidad con navegador

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

Sintaxis

<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