Encodera

Thanks for reading!

Donate to the site — we work hard for you.

HTML & CSS reference

translate="no"

Tells automatic translators that the text should not be translated.

Syntax

<span translate="no">Brand</span>

Parameters

ParameterTypeDescription
translateyes | noWhether automatic translators should translate the content.

Examples

A brand name and code stay as they are:

<p>Welcome to <span translate="no">The Bean</span>!</p>
<p>Run <code translate="no">npm install</code> first.</p>

Notes

The browser's built-in translator and page translation services respect it. Use it for brand names, people's names, code and commands. It is an HTML attribute — do not confuse it with the CSS translate property, which moves an element.

See also

  • lang — The language of an element's content.
  • <code> — A piece of code inside text; shown in a monospace font.

In the tutorial

  • Attributes — How HTML attributes work, the global attributes id, class, title, lang, hidden and style, boolean attributes and data attributes.

Thanks for reading!

Donate to the site — we work hard for you.