diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60eebd07ea685b0e777b5583.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60eebd07ea685b0e777b5583.md index 81b8bd3f1d1..7c96c9123a6 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60eebd07ea685b0e777b5583.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60eebd07ea685b0e777b5583.md @@ -1,6 +1,6 @@ --- id: 60eebd07ea685b0e777b5583 -title: Step 1 +title: الخطوة 1 challengeType: 0 dashedName: step-1 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027099a15b00485563dd2.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027099a15b00485563dd2.md index 7374eb7cbce..3c415a25fca 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027099a15b00485563dd2.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027099a15b00485563dd2.md @@ -1,6 +1,6 @@ --- id: 60f027099a15b00485563dd2 -title: Step 2 +title: الخطوة 2 challengeType: 0 dashedName: step-2 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027c87bc98f050395c139.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027c87bc98f050395c139.md index f962a226c40..4f74c68b3df 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027c87bc98f050395c139.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f027c87bc98f050395c139.md @@ -1,6 +1,6 @@ --- id: 60f027c87bc98f050395c139 -title: Step 3 +title: الخطوة 3 challengeType: 0 dashedName: step-3 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f0286404aefb0562a4fdf9.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f0286404aefb0562a4fdf9.md index 92ff75876b6..3e999313d61 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f0286404aefb0562a4fdf9.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f0286404aefb0562a4fdf9.md @@ -1,6 +1,6 @@ --- id: 60f0286404aefb0562a4fdf9 -title: Step 4 +title: الخطوة 4 challengeType: 0 dashedName: step-4 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f02e7361b68405e27b62a5.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f02e7361b68405e27b62a5.md index f1ac338c7f5..c524e1fbec9 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f02e7361b68405e27b62a5.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f02e7361b68405e27b62a5.md @@ -1,6 +1,6 @@ --- id: 60f02e7361b68405e27b62a5 -title: Step 6 +title: الخطوة 6 challengeType: 0 dashedName: step-6 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f030d388cb74067cf291c3.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f030d388cb74067cf291c3.md index f9a0a7aaefe..a25fa424ff6 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f030d388cb74067cf291c3.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f030d388cb74067cf291c3.md @@ -1,6 +1,6 @@ --- id: 60f030d388cb74067cf291c3 -title: Step 7 +title: الخطوة 7 challengeType: 0 dashedName: step-7 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1922fcbd2410527b3bd89.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1922fcbd2410527b3bd89.md index 79e81fb6b56..adb0395678b 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1922fcbd2410527b3bd89.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1922fcbd2410527b3bd89.md @@ -1,6 +1,6 @@ --- id: 60f1922fcbd2410527b3bd89 -title: Step 8 +title: الخطوة 8 challengeType: 0 dashedName: step-8 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a5e2d2c23707a4f9a660.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a5e2d2c23707a4f9a660.md index ba6fee4bc60..0e50d359cc3 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a5e2d2c23707a4f9a660.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a5e2d2c23707a4f9a660.md @@ -1,6 +1,6 @@ --- id: 60f1a5e2d2c23707a4f9a660 -title: Step 9 +title: الخطوة 9 challengeType: 0 dashedName: step-9 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md index 2506c87de6b..4b2881e9df0 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md @@ -1,6 +1,6 @@ --- id: 60f1a9cbd23023082e149fee -title: Step 10 +title: الخطوة 10 challengeType: 0 dashedName: step-10 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5c3e399ff1a05629964e4.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5c3e399ff1a05629964e4.md index 11f054e1a77..0f052b2d74f 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5c3e399ff1a05629964e4.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5c3e399ff1a05629964e4.md @@ -1,6 +1,6 @@ --- id: 60f5c3e399ff1a05629964e4 -title: Step 11 +title: الخطوة 11 challengeType: 0 dashedName: step-11 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md index 15fd13efa88..b58a77b80ef 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md @@ -1,6 +1,6 @@ --- id: 60f5cb8875ab6a0610f05071 -title: Step 13 +title: الخطوة 13 challengeType: 0 dashedName: step-13 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md index a06b59a1ab8..d7d7642d26c 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md @@ -1,6 +1,6 @@ --- id: 60f5d2776c854e069560fbe6 -title: Step 14 +title: الخطوة 14 challengeType: 0 dashedName: step-14 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md index 62b416930fa..02ee1e3041d 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md @@ -1,6 +1,6 @@ --- id: 60f5dc35c07ac1078f140916 -title: Step 15 +title: الخطوة 15 challengeType: 0 dashedName: step-15 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md index 76446668b8f..999f73bd966 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md @@ -1,6 +1,6 @@ --- id: 60f803d5241e6a0433a523a1 -title: Step 16 +title: الخطوة 16 challengeType: 0 dashedName: step-16 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md index dc237fd0e1d..5e4be7fe7be 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md @@ -1,6 +1,6 @@ --- id: 60f805f813eaf2049bc2ceea -title: Step 17 +title: الخطوة 17 challengeType: 0 dashedName: step-17 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md index bf04e5363ed..bc4f10f74ca 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md @@ -1,6 +1,6 @@ --- id: 60f80e0081e0f2052ae5b505 -title: Step 19 +title: الخطوة 19 challengeType: 0 dashedName: step-19 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md index 27730171e1e..61a0aa4771d 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md @@ -1,6 +1,6 @@ --- id: 60f81167d0d4910809f88945 -title: Step 20 +title: الخطوة 20 challengeType: 0 dashedName: step-20 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md index b80354750ee..f83ed0e8c8b 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md @@ -1,6 +1,6 @@ --- id: 60f81616cff80508badf9ad5 -title: Step 21 +title: الخطوة 21 challengeType: 0 dashedName: step-21 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md index a3205416c48..9b713509ea5 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md @@ -1,6 +1,6 @@ --- id: 60f83e7bfc09900959f41e20 -title: Step 22 +title: الخطوة 22 challengeType: 0 dashedName: step-22 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md index 3516e48e417..2b42ebc13fc 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md @@ -1,6 +1,6 @@ --- id: 60f84ec41116b209c280ba91 -title: Step 23 +title: الخطوة 23 challengeType: 0 dashedName: step-23 --- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md index 6f8a5f19c74..b4520cd76f2 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md @@ -1,28 +1,28 @@ --- id: 60f852f645b5310a8264f555 -title: Step 24 +title: الخطوة 24 challengeType: 0 dashedName: step-24 --- # --description-- -فلنذهب إلى الجزء التالي من نموذج التسجيل. سيطلب هذا القسم نوع الحساب الذي يفتحه المستخدم، وسيؤكد أن المستخدم قد قرأ الأحكام والشروط. +فلنذهب إلى الجزء التالي من نموذج التسجيل. This section will ask for the type of account the user is opening. -ابدأ بإضافة ثلاثة عناصر `label` إلى الـ `fieldset` الثاني. +Start by adding two `label` elements to the second `fieldset`. # --hints-- -يجب عليك إضافة ثلاثة عناصر `label` إلى الـ `fieldset` الثاني. +You should add two `label` elements to the second `fieldset`. ```js -assert.equal(document.querySelectorAll('fieldset')?.[1]?.querySelectorAll('label')?.length, 3); +assert.equal(document.querySelectorAll('fieldset')?.[1]?.querySelectorAll('label')?.length, 2); ``` عناصر `label` يجب أن تكون siblings اي تحت parent واحد و علي نفس المستوي. ```js -assert.exists(document.querySelector('fieldset:nth-child(2)')?.querySelector('label + label + label')); +assert.exists(document.querySelector('fieldset:nth-child(2)')?.querySelector('label + label')); ``` # --seed-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md index bd1ecd3b15a..91e3a6d8406 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md @@ -1,13 +1,13 @@ --- id: 60f85a62fb30c80bcea0cedb -title: Step 25 +title: الخطوة 25 challengeType: 0 dashedName: step-25 --- # --description-- -سيتم السماح للمستخدمين باختيار `Personal Account` أو `Business Account`. +Users will be allowed to choose either a `Personal` or `Business`. للقيام بذلك، ضمن كل عنصر من أول عنصرين `label`، أضف عنصر `input` واحد مع `type="radio"`. @@ -58,7 +58,6 @@ assert.equal(document.querySelectorAll('fieldset:nth-child(2) input[type="radio"
--fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md index f0785cd3768..b72d9ac21de 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md @@ -1,32 +1,43 @@ --- id: 60f8604682407e0d017bbf7f -title: Step 26 +title: الخطوة 26 challengeType: 0 dashedName: step-26 --- # --description-- -بالنسبة للأحكام والشروط، أضف `input` فيه `type` يساوي `checkbox` إلى عنصر `label` الثالث. اجعل هذا العنصر `input` مطلوبا `required` لأن المستخدمين لا ينبغي أن يسجلوا الدخول دون قراءة الأحكام والشروط. +Within each corresponding `label` element, and immediately after the `input` element, add a space and add the following text: + +```md +Personal +Business +``` # --hints-- -يجب عليك إضافة `input` إلى عنصر `label` الثالث. +You should give the first `label` the text `Personal`. ```js -assert.exists(document.querySelector('fieldset:nth-child(2) label:nth-child(3) input')); +assert.include(document.querySelector('fieldset:nth-child(2) > label')?.innerText, 'Personal'); ``` -يجب عليك إضافة سمة `type` بالقيمة `checkbox` إلى عنصر `input`. +You should give the second `label` the text `Business`. ```js -assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(3) input')?.type, 'checkbox'); +assert.include(document.querySelector('fieldset:nth-child(2) > label:nth-child(2)')?.innerText, 'Business'); ``` -يجب عليك إضافة سمة `required` إلى عنصر `input`. +You should give the first `label` text one space at the front. ```js -assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(3) input')?.required, true); +assert.equal(document.querySelector('fieldset:nth-child(2) > label')?.innerText?.[0], ' '); +``` + +You should give the second `label` text one space at the front. + +```js +assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(2)')?.innerText?.[0], ' '); ``` # --seed-- @@ -51,13 +62,12 @@ assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(3) in ---fcc-editable-region-- --fcc-editable-region-- + + +--fcc-editable-region-- + diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md index 97fa6733c01..32b4610ad64 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md @@ -1,56 +1,28 @@ --- id: 60f8618d191b940d62038513 -title: Step 27 +title: الخطوة 27 challengeType: 0 dashedName: step-27 --- # --description-- -ضمن كل عنصر من عناصر `label` المقابلة، وبعد عنصر `input` مباشرة، أضف مساحة وأضف النص التالي: +You only want one radio input to be selectable at a time. However, the form does not know the radio inputs are related. -```md -Personal Account -Business Account -I accept the terms and conditions -``` +To relate the radio inputs, give them the same `name` attribute with a value of `account-type`. Now, it is not possible to select both radio inputs at the same time. # --hints-- -يجب عليك إعطاء أول `label` النص `Personal Account`. +You should give the first radio input the `name` attribute with a value of `account-type`. ```js -assert.include(document.querySelector('fieldset:nth-child(2) > label')?.innerText, 'Personal Account'); +assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(1) input[type="radio"]')?.name, 'account-type'); ``` -يجب عليك إعطاء ثاني `label` النص `Business Account`. +You should give the second radio input the `name` attribute with a value of `account-type`. ```js -assert.include(document.querySelector('fieldset:nth-child(2) > label:nth-child(2)')?.innerText, 'Business Account'); -``` - -يجب عليك إعطاء ثالث `label` النص `I accept the terms and conditions`. - -```js -assert.include(document.querySelector('fieldset:nth-child(2) > label:nth-child(3)')?.innerText, 'I accept the terms and conditions'); -``` - -يجب أن تعطي أول نص `label` مسافة واحدة في المقدمة. - -```js -assert.equal(document.querySelector('fieldset:nth-child(2) > label')?.innerText?.[0], ' '); -``` - -يجب أن تعطي ثاني نص `label` مسافة واحدة في المقدمة. - -```js -assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(2)')?.innerText?.[0], ' '); -``` - -يجب أن تعطي ثالث نص `label` مسافة واحدة في المقدمة. - -```js -assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(3)')?.innerText?.[0], ' '); +assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(2) input[type="radio"]')?.name, 'account-type'); ``` # --seed-- @@ -77,9 +49,8 @@ assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(3)' --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md index 46064ea24be..b72ab676454 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md @@ -1,34 +1,40 @@ --- id: 60fab4a123ce4b04526b082b -title: Step 28 +title: الخطوة 28 challengeType: 0 dashedName: step-28 --- # --description-- -تريد فقط radio input واحد قابل للاختيار في كل مرة. ومع ذلك ، فإن النموذج لا يعرف أن مدخلات الراديو (radio inputs) مرتبطة. +Currently when someone submit the form, they can submit it without checking the radio inputs. Although you had used `required` attribute to indicate the the input is required previously, this can't work in this case, because adding required to both inputs, will convey the wrong information to the form users. -لربط مدخلات الراديو، قم بإعطائهم نفس سمة `name` بقيمة `account-type`. الآن، لا يمكن تحديد كلا مدخلات الراديو في نفس الوقت. +To solve this, you can provide context of what is needed by adding `legend` element below the second `fieldset` with text `Account type (required)`, then add `checked` attribute to the `Personal` input to make sure that the form is submitted with the required data in it. # --hints-- -يجب أن تعطي أول مدخل راديو السمة `name` بقيمة `account-type`. +Your `input` elements should remain `type` of `radio`. ```js -assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(1) input[type="radio"]')?.name, 'account-type'); +assert.equal(document.querySelectorAll('fieldset:nth-child(2) input[type="radio"]')?.length, 2); ``` -يجب أن تعطي مدخل الراديوي الثاني سمة `name` بقيمة `account-type`. +You should add a `legend` element within the second `fieldset` element. ```js -assert.equal(document.querySelector('fieldset:nth-child(2) label:nth-child(2) input[type="radio"]')?.name, 'account-type'); +assert.equal(document.querySelectorAll('fieldset:nth-of-type(2) > legend')?.length, 1); ``` -لا يجب أن تعطي `checkbox` السمة `name`. +You should add `Account type (required)` text to the `legend` element. ```js -assert.isEmpty(document.querySelector('fieldset:nth-child(2) label:nth-child(3) input[type="checkbox"]')?.name); +assert.equal(document.querySelector('fieldset:nth-of-type(2) > legend')?.textContent, 'Account type (required)'); +``` + +You should give an attribute of `checked` to the `Personal` input. + +```js +assert.isTrue(document.querySelector('fieldset:nth-child(2) input[type="radio"]')?.hasAttribute('checked')); ``` # --seed-- @@ -55,9 +61,9 @@ assert.isEmpty(document.querySelector('fieldset:nth-child(2) label:nth-child(3) --fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md index 624394455c4..1037e09359d 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md @@ -7,7 +7,7 @@ dashedName: step-31 # --description-- -لإكمال هذا الـ `fieldset`، اربط النص `terms and conditions` في الـ `label` الثالث إلى الموقع التالي: +Add `I accept the terms and conditions` text to the newly added label, then link the text `terms and conditions` to the following location: ```md https://www.freecodecamp.org/news/terms-of-service/ @@ -15,22 +15,28 @@ https://www.freecodecamp.org/news/terms-of-service/ # --hints-- -يجب عليك استخدام عنصر `a` للربط بالأحكام والشروط. +You should add `I accept the terms and conditions` text to the label following the third fieldset. ```js -assert.exists(document.querySelector('fieldset:nth-child(2) > label:nth-child(3) > input + a')); +assert.equal(document.querySelector('fieldset:nth-child(3) + label')?.innerText.trim(), 'I accept the terms and conditions'); ``` -يجب عليك إعطاء عنصر `a` سمة `href` من `https://www.freecodecamp.org/news/terms-of-service/`. +You should use an `a` element to link to the terms and conditions. ```js -assert.match(document.querySelector('fieldset:nth-child(2) > label:nth-child(3) > input + a')?.href, /https:\/\/www\.freecodecamp\.org\/news\/terms-of-service\/?/); +assert.exists(document.querySelector('fieldset:nth-child(3) + label > input + a')); ``` -يجب عليك فقط تغليف عنصر `a` حول النص `terms and conditions`. +You should give the `a` element an `href` of `https://www.freecodecamp.org/news/terms-of-service/`. ```js -assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(3) > input + a')?.textContent, 'terms and conditions'); +assert.match(document.querySelector('fieldset:nth-child(3) + label > input + a')?.href, /https:\/\/www\.freecodecamp\.org\/news\/terms-of-service\/?/); +``` + +You should only wrap the `a` element around the text `terms and conditions`. + +```js +assert.equal(document.querySelector('fieldset:nth-child(3) + label > input + a')?.textContent, 'terms and conditions'); ``` # --seed-- @@ -55,14 +61,15 @@ assert.equal(document.querySelector('fieldset:nth-child(2) > label:nth-child(3) ---fcc-editable-region-- ---fcc-editable-region-- +--fcc-editable-region-- + +--fcc-editable-region--