Categories
HTML Web development

HTML translate Attribute

Learn how to use the HTML translate Attribute.



HTML translate Attribute

The HTML translate attribute defines whether the content of an element should be translated.

Syntax:

<element translate="yes|no"> 

yes – defines that the content of the element should be translated

no – defines that the content of the element must not be translated.

Example:

<!DOCTYPE html>
<html>
<body>

<header>
  <h1 translate="no">Lena Design</h1>
</header>

</body>
</html>

Output:

Lena Design

Enjoy coding!

HTML draggable Attribute

HTML hidden Attribute

HTML alt Attribute