From 7817eb0d36abd47e01d19d47db2ea4e16259a8b2 Mon Sep 17 00:00:00 2001 From: evankart <95543565+evankart@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:57:24 -0800 Subject: [PATCH] fix: fix registration form instructions and tests (#52413) --- .../60fab8367d35de04e5cb7929.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md index 1037e09359d..493d7d99bc3 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md @@ -7,7 +7,7 @@ dashedName: step-31 # --description-- -Add `I accept the terms and conditions` text to the newly added label, then link the text `terms and conditions` to the following location: +Add the text `I accept the terms and conditions` immediately after the `input` element in the newly added label. Then link the text `terms and conditions` to the following location: ```md https://www.freecodecamp.org/news/terms-of-service/ @@ -21,7 +21,13 @@ You should add `I accept the terms and conditions` text to the label following t assert.equal(document.querySelector('fieldset:nth-child(3) + label')?.innerText.trim(), 'I accept the terms and conditions'); ``` -You should use an `a` element to link to the terms and conditions. +You should use an `a` element to link to the terms and conditions. + +```js +assert.exists(document.querySelector('fieldset:nth-child(3) + label a')); +``` + +You should put the new text immediately after the `input` element in the `label`. ```js assert.exists(document.querySelector('fieldset:nth-child(3) + label > input + a'));