Horje
How to exclude Google Translator from Part of My Text

Here simply uses <span class="notranslate">Your Text</span>


Example of Excluding Google Translation

Here is code
index.html
Example: HTML
<span class="notranslate">Your Text</span>

Full Example of Excluding Google Translation with HTML Code

Here I give full example
index.html
Example: HTML
<!DOCTYPE html>
<html lang="en-US">
<body>

<h1>My Web Page</h1>

<p>Hello everybody!</p>

<p>Translate this page:</p>

<div id="google_translate_element"></div>

<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<p>You can translate the content of this page by selecting a language in the select box.</p>

<span class="notranslate">
<h3>
World Wrestling Entertainment is an American professional wrestling promotion. It is owned and operated by TKO Group Holdings, a majority-owned subsidiary of Endeavor Group Holdings. Wikipedia
</h3>
</span>
</body>
</html>

Output should be:

Full Example of Excluding Google Translation with HTML Code





Category:
Web Tutorial
Sub Category:
HTML Language Tutorial
Uploaded by:
Admin