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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML translate-Attribut

Die globale Eigenschaft 'translate' wird verwendet, um zu bestimmen, ob die Attribute und der Textknoteninhalt der zugehörigen Elemente entsprechend der Systemsprache übersetzt werden sollen.

HTML-Globale Attribute

The translate attribute can have the following two values:

  • Not set or "yes". Using these two values indicates that the content should be translated when the page is localized.

  • "no". Using this value indicates that the corresponding content does not require 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

The translate attribute is not supported by any mainstream browsers.

Definition and usage

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

HTML 4.01 with HTML5differences

The translate attribute is a feature of HTML5new features.

Syntax

<element translate="yes|no">

Attribute value

ValueDescription
yesDefine elements that require translation
noDefine elements that do not require translation


HTML-Globale Attribute