--- id: bad87fee1348bd9aede08835 title: Nest Many Elements within a Single div Element challengeType: 0 videoUrl: '' localeTitle: Nest العديد من العناصر داخل عنصر div مفرد --- ## Description
عنصر div ، المعروف أيضًا باسم عنصر القسمة ، هو حاوية للأغراض العامة للعناصر الأخرى. ربما يكون عنصر div هو أكثر عناصر HTML شيوعًا على الإطلاق. تمامًا مثل أي عنصر آخر غير الإغلاق الذاتي ، يمكنك فتح عنصر div باستخدام <div> وإغلاقه في سطر آخر باستخدام </div> .
## Instructions
اجعل "تحب قطط الأشياء" و "أشياء تكره القطط" تسرد كل عنصر div واحد. تلميح: حاول وضع الخاص بك افتتاح div العلامة فوق بك "القطط الأمور الحب" p العنصر الخاص بك وإغلاق div الوسم الخاص بك بعد إغلاق ol العلامة بحيث أن كلا من القوائم الخاصة بك هي واحدة ضمن div .
## Tests
```yml tests: - text: ضع عناصر p داخل عنصر div الخاص بك. testString: 'assert($("div").children("p").length > 1, "Nest your p elements inside your div element.");' - text: عش ul داخل عنصر div الخاص بك. testString: 'assert($("div").children("ul").length > 0, "Nest your ul element inside your div element.");' - text: قم ol عنصر ol الخاص بك داخل عنصر div الخاص بك. testString: 'assert($("div").children("ol").length > 0, "Nest your ol element inside your div element.");' - text: تأكد من أن عنصر div يحتوي على علامة إغلاق. testString: 'assert(code.match(/<\/div>/g) && code.match(/<\/div>/g).length === code.match(/
/g).length, "Make sure your div element has a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```
## Solution
```js // solution required ```