Title: HTML Validation issues
Last modified: September 1, 2016

---

# HTML Validation issues

 *  Resolved [Aldo](https://wordpress.org/support/users/ab_lu/)
 * (@ab_lu)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-validation-issues/)
 * Hi Stefan
 * When validating the HTML code of our site we get the following error:
 * Error: Element `img` is missing required attribute `src`.
    [endif]–><img srcset
   =”/wp-content/uploads/2016/05/image-165×120.jpg, /wp-content/uploads/2016/05/
   image-330×240.jpg 2x” class=”lazyload img-responsive” alt=””>
 * Is there a way to add an empty src using rwp_picture?
 * Thanks
    Aldo
 * [https://wordpress.org/plugins/responsify-wp/](https://wordpress.org/plugins/responsify-wp/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * (@stefanledin)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-validation-issues/#post-7488779)
 * Hi Aldo!
    You have two options. 1. Turn on the native mode. The `<img>` will 
   have both the `src` and `srcset` attributes then. The downside of this is that
   browsers that doesn’t support `srcset` might download two images, the one in 
   the `src` and the one from `srcset` that fits best. 2. I haven’t tried this, 
   but I think it should work:
 *     ```
       echo rwp_picture( $id, array(
           'attributes' => array(
               'src' => ''
           )
       ) );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘HTML Validation issues’ is closed to new replies.

 * ![](https://ps.w.org/responsify-wp/assets/icon-256x256.png?rev=1209208)
 * [Responsify WP](https://wordpress.org/plugins/responsify-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsify-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsify-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/responsify-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsify-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsify-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/html-validation-issues/#post-7488779)
 * Status: resolved