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?
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
for
attribute, 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