Title: Srcset Errors in HTML Validator
Last modified: August 24, 2016

---

# Srcset Errors in HTML Validator

 *  [Clicknathan](https://wordpress.org/support/users/clicknathan/)
 * (@clicknathan)
 * [11 years ago](https://wordpress.org/support/topic/srcset-errors-in-html-validator/)
 * Curious as to your thoughts on this:
 * > Bad value for attribute srcset on element img: Width for image [http://website.com…2015/03/how-to-guides.jpg](http://website.com…2015/03/how-to-guides.jpg)
   > is identical to width for image [http://website.com…how-to-guides-330×260.jpg](http://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="http://website.com/wp-content/uploads/2015/03/how-to-guides-330x260.jpg" sizes="(max-width: 330px) 100vw, 330px"
       srcset="http://website.com/wp-content/uploads/2015/03/how-to-guides-330x260.jpg 330w, http://website.com/wp-content/uploads/2015/03/how-to-guides-300x236.jpg 300w, http://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
    `http://website.com/wp-content/uploads/2015/03/how-to-
   guides-330x260.jpg 330w`
 * and
    `http://website.com/wp-content/uploads/2015/03/how-to-guides.jpg 330w`
 * are both using `330w`
 * [https://wordpress.org/plugins/ricg-responsive-images/](https://wordpress.org/plugins/ricg-responsive-images/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years ago](https://wordpress.org/support/topic/srcset-errors-in-html-validator/#post-6011180)
 * It looks like you’ve got two images that are the same size with two different
   names on your server. This can happen if you upload an image that is exactly 
   the same size as an image size you have. I believe this is related to a WP bug
   that has been fixed for 4.2, which comes out in a few weeks.
 * [https://core.trac.wordpress.org/ticket/31296](https://core.trac.wordpress.org/ticket/31296)
 * In the mean time, we’ll add a note to check for duplicate sizes in the plugin
   itself. Thanks for reporting!

Viewing 1 replies (of 1 total)

The topic ‘Srcset Errors in HTML Validator’ is closed to new replies.

 * ![](https://ps.w.org/ricg-responsive-images/assets/icon.svg?rev=1119324)
 * [RICG Responsive Images](https://wordpress.org/plugins/ricg-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ricg-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ricg-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/ricg-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ricg-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ricg-responsive-images/reviews/)

## Tags

 * [breakpoints](https://wordpress.org/support/topic-tag/breakpoints/)
 * [default](https://wordpress.org/support/topic-tag/default/)
 * [featured images](https://wordpress.org/support/topic-tag/featured-images/)
 * [html validator](https://wordpress.org/support/topic-tag/html-validator/)
 * [media settings](https://wordpress.org/support/topic-tag/media-settings/)
 * [picturefill](https://wordpress.org/support/topic-tag/picturefill/)
 * [RICG](https://wordpress.org/support/topic-tag/ricg/)
 * [sizes](https://wordpress.org/support/topic-tag/sizes/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/srcset-errors-in-html-validator/#post-6011180)
 * Status: not resolved