translate= - 翻訳可否
属性
<tagName translate=value>
- 翻訳可否
サポート
https://caniuse.com/mdn-html_global_attributes_translate説明
HTML5 で追加されました。value には yes または no を指定します。値を省略した場合は yes とみなされます。no を指定すると、プログラムのソースコードや、サービス名など、自動翻訳の対象にしたくない箇所を、翻訳対象外にします。
使用例
HTML
<pre> <code translate="no"> main() { printf("Hello world!"); } </code> </pre>
リンク
- https://html.spec.whatwg.org/multipage/dom.html#attr-translate
- https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/translate
- https://caniuse.com/mdn-html_global_attributes_translate
Copyright (C) 2014-2017 杜甫々
初版:2014年12月31日 最終更新:2017年12月31日
https://www.tohoho-web.com/html/attr/translate.htm