0

I run my code through W3 validator.

And it's giving me this error:

"Element noscript not allowed as child of element picture in this context. (Suppressing further errors from this subtree.)"

How can I improve the code to avoid the in the element?

<picture>

    <source srcset="mdn-logo-wide.png" media="(min-width: 600px)">
    <img src="mdn-logo-narrow.png" alt="MDN">

    {# When lazyloading, include noscript to still render image when JS is off #}
    {% if lazyload %}
      <noscript>
        <img src="mdn-logo-narrow.png" alt="MDN">
      </noscript>

</picture>
user11001232
  • 73
  • 1
  • 1
  • 9

0 Answers0