HTML翻訳属性


一部の要素を翻訳しないように指定します。

<p translate="no">Don't translate this!</p>
<p>This can be translated to any language.</p>


定義と使用法

このtranslate属性は、要素のコンテンツを変換するかどうかを指定します。

テスト:Google翻訳画像(ページ上部の検索ボタンの横)をクリックして別の言語に変更し、下の「アイスクリーム」という単語がどうなるかを確認します。

ここではtranslate = "no"を使用します:ice cream


ブラウザのサポート

Attribute
translate Not supported Not supported Not supported Not supported Not supported

構文

<element translate="yes|no">

属性値

Value Description
yes Specifies that the content of the element should be translated
no Specifies that the content of the element must not be translated

関連ページ

HTMLチュートリアル:HTML属性