Tell us what’s happening:
not having a problem, but i have a question about for and id attribute.
so the for attribute using in label element and the id attribute using in input element.
but what if it vice versa? does it still work? or it doesnt matter.
Your code so far
<!-- file: index.html -->
<!-- User Editable Region -->
<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name"/></label>
<label for="last-name">Enter Your Last Name: <input /></label>
<label for="email">Enter Your Email: <input /></label>
<label for="new-password">Create a New Password: <input /></label>
</fieldset>
<!-- User Editable Region -->
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Learn HTML Forms by Building a Registration Form - Step 18