Sometimes, we want to tell Google Translate to not translate a section of a website with HTML.
In this article, we’ll look at how to tell Google Translate to not translate a section of a website with HTML.
How to tell Google Translate to not translate a section of a website with HTML?
To tell Google Translate to not translate a section of a website with HTML, we add the notranslate
class.
For instance, we write
Welcome to the <span class="notranslate">Cool</span> company website!
to add the notranslate
class to the span to stop the text inside it from being translated.
Conclusion
To tell Google Translate to not translate a section of a website with HTML, we add the notranslate
class.