fac-13 / HEII-topics

website where you can log in, post topics and vote on topics
https://heii-voting-topics.herokuapp.com/
2 stars 1 forks source link

More of a question really.... #78

Open haydnba opened 6 years ago

haydnba commented 6 years ago

I have seen this wrapping of the input field within its label element a lot and I don't really understand it - is it a best practice or something? --- If the label is correctly associated to the input through its forattribute, why the wrapping? Does the label element normally have some browser defined default formatting that makes this useful?

https://github.com/fac-13/HEII-topics/blob/f41463854fd77518befea620544c589775fd8499/public/index.html#L24-L26