html tutorial - translate Attribute in HTML - html5 - html code - html form



  • The translate attribute describes whether the content of an element has been translated or not.
  • The translate attribute is a section of the Global Attributes.

Syntax for translate attribute in HTML:

<element translate ="value">

Difference between HTML 4.01 and HTML 5 for translate Attribute:

HTML 4.01

  • The translate attribute not supported.

HTML 5

  • The translate attribute is newly added.

Applies To:

Element Attribute
All HTML elements translate

translate Attribute Values:

Value Description
yes Defines that the content of the element has been translated
no Defines that the content of the element has not been translated

Sample Coding for translate Attribute in HTML:

<!DOCTYPE html>
<html>
    <body>
        <p translate="no">Don't translate Wikitechy!</p>
    </body>
</html>

Code Explanation for translate Attribute in HTML:

translate Attribute Code Explanation

  1. <p> tag is used to defines the paragraph.
  2. translate attribute is has not been translated the content,“Don’t translate Wikitechy”, because the translate value is “no”.

Browser Support for translate Attribute in HTML:

No No No No No

Related Searches to translate Attribute in html