Be careful on nesting the <input> directly inside the <label> is NOT supported, although it is valid HTML syntax
<input>
<label>
Can you clarify this bit? I've always read different opinions on this. It's an accessibility issue, I guess?
What I know is:
id
for
That being said, I stopped putting <input> elements inside <label>s a while ago just to be safe, but there's still this uncertainty that bugs me.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you clarify this bit? I've always read different opinions on this. It's an accessibility issue, I guess?
What I know is:
id
and afor
attribute anyway.That being said, I stopped putting
<input>
elements inside<label>
s a while ago just to be safe, but there's still this uncertainty that bugs me.