-3
The google accessibility rules say that every input has to have a label. Ok!
I happen to be putting the attribute for
equal to id
input, but Google still accuses in the Lighthouse report that the input has no associated label.
Here’s an example that Google doesn’t recognize:
<div class="boxCampoPu">
<input id="puNome" type="text" class="puNome" placeholder="Digite seu nome">
<label for="puNome"> Insira seu nome</label>
</div>
Can anyone explain why this occurs?
I just did that. Same result.
– Augusto Vasques
What do you mean it’s not from this item? Are you saying that the id does not match for? It got a bit confusing.
– gustavomt3
Yes. I posted the code and the result. What’s confusing? Couldn’t reproduce your problem. What wasn’t clear? I posted the html code and the result.
– Danizavtz