I want to use recaptcha only for browsers that do not support JavaScript. To do this, I tried using the <noscript> , as shown below.
<!DOCTYPE html> <html> <head> <title>recaptcha</title> </head> <body> <noscript> <?php require_once('recaptcha-php-1.11/recaptchalib.php'); echo recaptcha_get_html('xxx'); ?> </noscript> <p>Done</p> </body> </html>
When checking the code using http://validator.w3.org, I received the following errors:
Error Line 11, Column 11: The element noscript must not appear as a descendant of the noscript element. <noscript> Error Line 12, Column 147: The frameborder attribute on the iframe element is obsolete. Use CSS instead. …WAABIZRfA-fKq8eVkFjK_F" height="300" width="500" frameborder="0"></iframe><br/>
Is there anything I can do to remove these errors (at least the first one)? Also, am I better off disabling JavaScript using serveride and just not repeating the captcha?
source share