Html label isn't working

Html label isn't working
0

#1

I’m having a problem that when i click on the label it doesn’t toggle, it seems like it would be that the “for” isn’t done properly but it is and i have no other of the same ids. please help here is the code


#2

You are missing the equal symbol between the for and the id name. Try something like below:

<label for="email">Email Address</label>
          <input type="email" class="form-control" id="email">

#3

I knew it would be something simple thanks