Title: HTML Validation Error Using Recaptcha
Last modified: January 27, 2017

---

# HTML Validation Error Using Recaptcha

 *  [Robson Sanches](https://wordpress.org/support/users/robsonds/)
 * (@robsonds)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/html-validation-error-using-recaptcha/)
 * I’m having trouble validating the HTML of my site in W3C Validator, using the
   Recaptcha option of Plugin Contact Form 7.
 * The problem is caused by the “frameborder” and “scrolling” attributes present
   in the “iframe” tag that Recaptcha displays.
    I was able to resolve by changing
   the code snippet present in line 352 of the file recaptcha.php present in the
   folder “contact-form-7 > modules”.
 * `<iframe src="<?php echo esc_url( $url ); ?>" frameborder="0" scrolling="no" 
   style="width: 302px; height:422px; border-style: none;"></iframe>`
 * I changed by this code:
 * `<iframe src="<?php echo esc_url( $url ); ?>" style="border:0px; overflow:hidden;
   width: 302px; height:422px; border-style: none;"></iframe>`
 * It’s not that important, but it would be cool if you could change it, because
   otherwise it will be fixed, when the plugin is updated, I will lose the change
   I made to the plugin code.
    -  This topic was modified 9 years, 4 months ago by [Robson Sanches](https://wordpress.org/support/users/robsonds/).

Viewing 1 replies (of 1 total)

 *  [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [9 years ago](https://wordpress.org/support/topic/html-validation-error-using-recaptcha/#post-9210381)
 * This is an old thread, but the errors with W3C Validation persist in v. 4.8 of
   Contact Form 7. It would be great if you could fix it in the next version.

Viewing 1 replies (of 1 total)

The topic ‘HTML Validation Error Using Recaptcha’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [reCAPTCHA](https://wordpress.org/support/topic-tag/recaptcha/)

 * 1 reply
 * 2 participants
 * Last reply from: [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/html-validation-error-using-recaptcha/#post-9210381)
 * Status: not resolved