Global Attributes

HTML translate attribute

Hints whether text and translatable attributes should be translated during localization. Missing values inherit the parent's translation mode. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.

Formal Syntax & Structure

html syntaxhtml
translate="no"

Parameters & Attributes

NameTypeDescription
translateenumerated: yes, noHints whether text and translatable attributes should be translated during localization. Missing values inherit the parent's translation mode.

Working Example

Example Snippethtml
<p>  Use the  <code translate="no">npm install</code>  command.</p>
HTML Reference