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

黄舟
Release: 2017-11-03 13:55:23
Original
2171 people have browsed it

Example

Specifies that certain elements should not be translated:

<p translate="no">请勿翻译本段。</p>
<p>本段可被译为任意语言。</p>
Copy after login

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">
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template