How to hide <label for=""> CSS
label[for="secondname"]
{
display:none;
}
Use the attribute selector:
label[for="secondname"] {
display: none;
}
You can use label[for="secondname"] { display: none }
Hiding the label with display: none;
is bad for web accesibility and you shouldn't do it.
Try visibility: hidden;
instead.