Home >Web Front-end >HTML Tutorial >html translate element that specifies whether the content of an element should be translated

html translate element that specifies whether the content of an element should be translated

黄舟
黄舟Original
2017-11-03 13:55:232205browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn