Srcset Errors in HTML Validator
-
Curious as to your thoughts on this:
Bad value for attribute srcset on element img: Width for image https://website.com…2015/03/how-to-guides.jpg is identical to width for image https://website.com…how-to-guides-330×260.jpg.
That’s coming from the W3C’s HTML Validator. The code itself is:
<img width="330" height="260" src="https://website.com/wp-content/uploads/2015/03/how-to-guides-330x260.jpg" sizes="(max-width: 330px) 100vw, 330px" srcset="https://website.com/wp-content/uploads/2015/03/how-to-guides-330x260.jpg 330w, https://website.com/wp-content/uploads/2015/03/how-to-guides-300x236.jpg 300w, https://website.com/wp-content/uploads/2015/03/how-to-guides.jpg 330w" class="attachment-thumbnail wp-post-image" alt="practice-tips-guides-how-to-articles" />
I’m guessing it’s where
https://website.com/wp-content/uploads/2015/03/how-to-guides-330x260.jpg 330w
and
https://website.com/wp-content/uploads/2015/03/how-to-guides.jpg 330w
are both using
330w
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Srcset Errors in HTML Validator’ is closed to new replies.