GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — translate HTML global attribute - HTML | MDN

translate HTML global attribute

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2023.

  • See full compatibility
  • Learn more

The translate global attribute is an enumerated attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged.

It can have the following values:

  • empty string or yes, which indicates that the element should be translated when the page is localized.
  • no, which indicates that the element must not be translated.

Although not all browsers recognize this attribute, it is respected by automatic translation systems such as Google Translate, and may also be respected by tools used by human translators. As such it's important that web authors use this attribute to mark content that should not be translated.

Examples

In this example, the translate attribute is used to ask translation tools not to translate the company's brand name in the footer.

html
<footer>
  <small>© 2020 <span translate="no">BrandName</span></small>
</footer>

Specifications

Specification
HTML
# attr-translate

Browser compatibility

See also

  • All global attributes.
  • The HTMLElement.translate property that reflects this attribute.
  • Using HTML's translate attribute.
  • HTML lang attribute

Help improve MDN

Learn how to contribute

This page was last modified on Apr 17, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.