You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The task for Input Labeling is talking about "id" and "for" attributes being required, in the second example the input tag is inside the label tag. The Mozilla docs says:
Alternatively, you can nest the <input> directly inside the <label>, in which case the for and id attributes are not needed because the association is implicit
Also this would be the case for the tasks under Nesting Form Data.
Forms
Getting Started
Input Labeling
Template-Driven Forms
Nesting Form Data
Using Template Model Binding
Validating Template-Driven Forms
Creating Functional Forms
The text was updated successfully, but these errors were encountered: