incorrect use of the

By: Anthony Bliss | Asked: 12/11/2023
ForumsCategory: General questionsincorrect use of the
Anthony Bliss asked 1 year ago
Hi there,

On my site I get an error message in Google console

incorrect use of the <label for=FORM_Element>

https://anthonyis.uk/

I am not sure what this means or how to change it

If someone could guide and help that would be great

Thanks
1 Answers
Rob LeVineRob LeVine answered 1 year ago
The error (which I think is 100% harmless) is because on line 198 you have the following in your page source: ... for="g-recaptcha-response"... I found did this by inspecting your page source, searching for "label for=" and finding the one that had no matching page element with the ID that followed the "for".
Rob LeVineRob LeVine replied 1 year ago

Actually a much better way to find it is to open the browser's dev tools (F12), look at the error in the console, expand the detail for the error, and click on the "Violating node" link beneath "AFFECTED RESOURCES"

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right