translate="no"
Tells automatic translators that the text should not be translated.
Syntax
<span translate="no">Brand</span>Parameters
| Parameter | Type | Description |
|---|---|---|
| translate | yes | no | Whether 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
In the tutorial
- Attributes — How HTML attributes work, the global attributes id, class, title, lang, hidden and style, boolean attributes and data attributes.