I’m trying to add the following standard code to include google translate that will my website but when i try to verify the page it truly is giving me faults.
–
< div style=" text-align: right; padding-right: 10px; " >
< div id=" google_translate_element" > < /div> < script>
purpose googleTranslateElementInit()
new google. translate. TranslateElement(
pageLanguage: ‘en’,
structure: google. translate. TranslateElement. InlineLayout. SIMPLE
, ‘google_translate_element’);
< /script> < script src=" //translate. yahoo and google. com/translate_a/element. jscb=googleTranslateElementInit" > < /script>
< /div>
–
- Line 272, Column 51: necessary attribute " type" definitely not specified
< div id=" google_translate_element" > < /div> < scriptThe attribute given above is required for an component that you’ve used, but you get omitted it. Such as, in most HTML PAGE and XHTML insurance types the " type" attribute is required on the " script" element plus the " alt" attribute is required for the " img" ingredient.
Typical values for sort are type=" text/css" to get < style> and type=" text/javascript" to get < script>. - Line 279, Column 101: necessary attribute " type" definitely not specified
later. google. com/translate_a/element. jscb=googleTranslateElementInit" < /script>The attribute given above is required for an component that you’ve used, but you get omitted it. Such as, in most HTML PAGE and XHTML insurance types the " type" attribute is required on the " script" element plus the " alt" attribute is required for the " img" ingredient.
Typical values for sort are type=" text/css" to get < style> and type=" text/javascript" to get < script>.
Adjust your < script> tag to this:
< script type=" text/javascript" >
It’s definitely not uncommon for writers of code snippets, perhaps Google, to release code that may create validation blunders. So you have always to check different people’s code.
Yes i trust your comment
Thanks plenty for your aid! It solved my problem.
WE appreciate!
Rather ridiculous to concern such standard computer code with validation glitches. They should end up being perfect!!!
Thanks plenty for your aid! It solved my problem.
WE appreciate!
Rather ridiculous to concern such standard computer code with validation glitches. They should end up being perfect!!!