What does it mean to put something within an element?

Sorry to be picky but I feel there should be a bit more explanation about the for attribute, because in the exercise description it said to add text Username within the <label> element.
It is confusing weather the text ‘Username’ is to be put in the <label for="username"> or as text, where actually both are needed <label for="username">Username</label> .

within an element is between opening and closing tag. for is an attribute of the <label> element

you need both, the for associate the label with the input field, while the text is displayed to the user so they know what is expected them

if something is unclear, you can always consult documentation :slight_smile:

1 Like

Thanks, sorry I posted to soon because this was explained in the next lesson.