Search box html labels

Hi bubble!

I am working on accessibility for my app and here is a problem I found while lighthouse scoring

Form elements do not have associated labels

and this element is a Search box

Any ideas how to set a label for a search box?

i not sure what you are doing, but you have to allow Attribute from the general setting, and then on each element, you see an attribute option at the bottom of its properties.

The “<label>” element represents a caption for an item in a user interface.

I need it for a search box
ID attribute do not solve the problem

This topic was automatically closed after 70 days. New replies are no longer allowed.