Latest web development tutorials

HTML translate attribute

HTML Global Attributes HTML Global Attributes

Examples

Some elements of the track are not translated:

<P translate = "no"> This paragraph is not translated. </ P>
<P> This paragraph can be translated </ p>


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

There is no major browsers support translate attribute.


Definition and Usage

translate attribute specifies the element content is to be translated.

Test: Use the Google translation tool, see the following words "ice cream" what will become:

Here we use the translate = "no": ice cream .

Here we use the =, class "notranslate": ice cream .

Tip: Use class = "notranslate" instead.


Differences between HTML 4.01 and HTML5

translate attribute is added HTML5 properties.


grammar

<Element translate = "yes | no">

Property Value

value description
yes Provision element content needs to be translated
no Element content regulations do not require translation


HTML Global Attributes HTML Global Attributes