I'm currently working on a project fiddling with animations on select and was creating a signup form (re-created it on my replit - https://replit.com/join/gzflphmalc-jeezgeorge )
Everything seems to be working fine except for the fact that when I click on the name of the label (name, email, password) it doesn't initiate the text input.
How can I wrap the label with the input so that when I click on the name as well it will initiate the input.
Thanks in advance. :)
I don't have a Replit account so I can't see your project. But if I understand your question, you can use id and for HTML attributes for that:
<label for="name">First Name</label>
<input id="name" type="text" placeholder="e.g. John Doe" />
Once you click on the label First Name, it will focus on the text input.