Input floating label question

All the inputs from a form that I have got floating labels but Google lighthouse doesn’t recognise them,it says that the input doesn’t have a label,how can I fix this?