The value of the for attribute of the label element must be the ID of a non-hidden form control

Hi, I am validating a site with the tool https://validator.w3.org/ and I get the following error that I have not been able to solve, with a CAPTCHA type field, it says: The value of the for attribute of the label element must be the ID of a non-hidden form control.

I attach a screenshot of the error and the lines of code that generates the form.

<li id="field_1_12"  class="gfield gfield--width-full field_sublabel_below field_description_below gfield_visibility_visible"  data-js-reload="field_1_12">
    <label class='gfield_label' for='input_1_12'>CAPTCHA</label>
    <div id='input_1_12' class='ginput_container ginput_recaptcha' data-theme='light' data-tabindex='-1' data-size='invisible' data-badge='bottomright'>
    </div>
</li>

thank you very much for your help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.