Example
Specifies that certain elements should not be translated:
<p translate="no">请勿翻译本段。</p> <p>本段可被译为任意语言。</p>
Browser support
All major browsers do not correctly support translate Attribute.
Definition and Usage
translate Specifies whether the element content should be translated.
Tip: Please use class="notranslate" instead.
Differences between HTML 4.01 and HTML5
The translate attribute is new in HTML5.
Syntax
<element translate="yes|no">
Attribute value
Value | Description |
yes | Specifies that the element content should be translated. |
no | Specifies that the element content should not be translated. |
Supported tag elements
HTML translate attribute is global attribute, which supports most HTML tags.
To access the complete set of HTML tags, please visit the HTML tag list.
The above is the detailed content of html translate element that specifies whether the content of an element should be translated. For more information, please follow other related articles on the PHP Chinese website!