I am trying to check my page as HTML 5 (W3c). And I have the following error: the "img" element is not allowed here (as a child of the "noscript"). The "noscript" element, when the "head" child element should contain only the following child elements: "link", "style" and "meta".
At https://developers.facebook.com/docs/ads-for-websites/conversion-pixel-code-migration, the recommendation for my code is: "Copy and paste the updated code snippet between <head> and </head> ; in The HTML code of your site on which you want to track conversions, for example, to track your registration, put the code on your "verified registration" web page. "
see source code:
<head> <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = '1234567890'; fb_param.value = '10.00'; fb_param.currency = 'USD'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); })(); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=1234567890&value=10.00¤cy=USD" /></noscript> </head>
Is it possible to change this code and pass the test (in the chapter section)?
source share