mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): fixed incorrect pre-existing code (#52031)
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
This commit is contained in:
co-authored by
Lasse Jørgensen
parent
bda1fb195c
commit
438fc8387b
+2
-3
@@ -9,9 +9,9 @@ dashedName: step-30
|
||||
|
||||
You need to confirm that the user has read the terms and conditions.
|
||||
|
||||
Add `label` element after the third `fieldset`, and a `input` element with `type` attribute of `checkbox` inside the newly added `label` element. Make this `input` element `required` because users should not sign up without reading the terms and conditions.
|
||||
Add a `label` element. Inside the newly created `label` element add an `input` element and set the `type` attribute to `checkbox`. Make this `input` element `required` so users can not sign up without agreeing to the terms and conditions.
|
||||
|
||||
Don't forget to add an `id` attribute of `terms-and-conditions` for accessibility.
|
||||
Add an `id` and `for` attribute with the value `terms-and-conditions` to the elements for accessibility.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -82,7 +82,6 @@ assert(document.querySelector('fieldset:nth-child(3) + label')?.matches('label[f
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
<label><input type="checkbox" required /></label>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user