--- id: bad87fee1348bd9aedf08804 title: Comment out HTML challengeType: 0 videoUrl: '' localeTitle: إضافة التعليقات في HTML --- ## الوصف
تذكر أنه لبدء التعليق تحتاج إلى استخدام الوسم <!-- ، ولإنهاء التعليق تحتاج إلى استخدام الوسم -->. هنا سوف تحتاج إلى إنهاء التعليق قبل بدء العنصر h2 الخاص بك.
## التعليمات
قم بتعليق العنصرين h1 وp ، اما العنصر h2 فاتركه دون تعليق.
## الاختبارات
```yml tests: - text: قم بتعليق العنصر h1 بحيث لا يكون مرئيًا على صفحتك. testString: 'assert(($("h1").length === 0), "Comment out your h1 element so that it is not visible on your page.");' - text: اترك العنصر h2 دون تعليق ليكون مرئيا على صفحتك. testString: 'assert(($("h2").length > 0), "Leave your h2 element uncommented so that it is visible on your page.");' - text: قم بتعليق العنصر p بحيث لا يكون مرئيًا على صفحتك. testString: 'assert(($("p").length === 0), "Comment out your p element so that it is not visible on your page.");' - text: تأكد من إغلاق كل تعليقاتك باستخدام --> . testString: 'assert(code.match(/[^fc]-->/g).length > 1, "Be sure to close each of your comments with -->.");' - text: لا تقم بتغيير ترتيب h1 أو h2 أو p في الكود البرمجي. testString: 'assert((code.match(/<([a-z0-9]){1,2}>/g)[0]==="

" && code.match(/<([a-z0-9]){1,2}>/g)[1]==="

" && code.match(/<([a-z0-9]){1,2}>/g)[2]==="

") , "Do not change the order of the h1 h2 or p in the code.");' ```

## Challenge Seed
```html ```
## Solution
```js // solution required ```