I ran a few of my Blocs-built sites through Wave recently to check accessibility and readability issues. I noticed that the forms in Blocs don’t have their labels and input fields associated with each other. Whilst the forms work just fine, this apparent “disconnect” can affect SEO page ranking. Although this isn’t an issue that is unique to Blocs sites, I was wondering if there was a way to correct this issue. The usual way to overcome this issue is by using code similar to below:
<input name="_checkbox" type="checkbox" id="checkbox1" required="" class="input3">
<label for="checkbox1" class="f8">
We can send you product updates and offers via email. It is possible to opt-out at any time.
</label>
The above is a checkbox form control that is correctly associated with its label (not from a Blocs Form)
In Blocs, the form control looks like this:
<input class="form-check-input" type="checkbox" id="optin" data-validation-minchecked-message="You must agree to this before we can take your information." data-validation-minchecked-minchecked="1" name="optin">
<label class="form-check-label">
We can send you product updates and offers via email. It is possible to opt-out at any time.
</label>