Question regarding Building a cat photo step 55

Hi all!

Really enjoying going through these right now, but I just had one question in regards to this exercise. What’s the point of doing

<input id="loving" type="checkbox" name="personality" <label for="loving">Loving</label>

when you could just do what you did previously:

<label><input id="loving" type="checkbox" name="personality">Loving</label>

The code we were shown previously uses less lines of text as you don’t need to add the for=“loving”, so why do it?

Less characters of code is not automatically better. The first lets you be more flexible in how you arrange the pieces.

Thanks! I guess I’ll understand it more once I get further in.