HTML - attributes - translate

revision:


Content

"translate" attribute : specifies whether to translate or not syntax some examples


"translate" attribute : specifies whether to translate or not

top

The translate attribute specifies whether the content of an element should be translated or not.

The translate attribute is part of the global attributes and can be used on any HTML element.


syntax

top

<element translate=" yes | no"></element>

yes specifies that the content of the element should be translated;
no specifies that the content of the element must not be translated.


some examples

top

translate attribute

Don't translate this!

This can be translated to any language.

codes:
                    <h3><strong >translate attribute</strong></h3>
                    <p class="spec" translate="no">Don't translate this!</p>
                    <p class="spec">This can be translated to any language.</p>
                

Content of the element should not translated.

Content of the element should be translated.

codes:
                    <p class="spec" translate="no">Content of the element should not translated.</p> 
                    <p  class="spec" translate="yes">Content of the element should be translated.</p>